From c66011b32d9aabeef9ae6ca5bb99210d86510d4a Mon Sep 17 00:00:00 2001 From: G Akshay Date: Mon, 12 Feb 2018 01:23:39 +0530 Subject: [PATCH] `just before` sounds better that 'immediately before' (#611) --- content/docs/reference-react-component.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/reference-react-component.md b/content/docs/reference-react-component.md index 237bac74..0c80ee8b 100644 --- a/content/docs/reference-react-component.md +++ b/content/docs/reference-react-component.md @@ -248,7 +248,7 @@ We do not recommend doing deep equality checks or using `JSON.stringify()` in `s componentWillUpdate(nextProps, nextState) ``` -`componentWillUpdate()` is invoked immediately before rendering when new props or state are being received. Use this as an opportunity to perform preparation before an update occurs. This method is not called for the initial render. +`componentWillUpdate()` is invoked just before rendering when new props or state are being received. Use this as an opportunity to perform preparation before an update occurs. This method is not called for the initial render. Note that you cannot call `this.setState()` here; nor should you do anything else (e.g. dispatch a Redux action) that would trigger an update to a React component before `componentWillUpdate()` returns.