From d5ebad1d2a4d3c8f8e8d50fcc584238c9e3a369f Mon Sep 17 00:00:00 2001 From: Brian Vaughn Date: Sun, 8 Oct 2017 13:32:35 -0700 Subject: [PATCH] Wordsmithing nit --- 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 bed8f4ca3..24d5f6ff3 100644 --- a/content/docs/reference-react-component.md +++ b/content/docs/reference-react-component.md @@ -216,7 +216,7 @@ 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. -Note that you cannot call `this.setState()` here; nor should you do anything else (for example, dispatching redux actions) that would trigger an update to any React component before `componentWillUpdate` returns. If you need to update state in response to a prop change, use `componentWillReceiveProps()` instead. +Note that you cannot call `this.setState()` here; nor should you do anything else (eg dispatch a redux action) that would trigger an update to a React component before `componentWillUpdate` returns. Use `componentWillReceiveProps()` if you need to update `state` in response to `props` changes. > Note >