From 72e8051fa32dc0d60712d99491051a25fd6fc60e Mon Sep 17 00:00:00 2001 From: Henrique Sosa Date: Mon, 5 Feb 2018 02:57:58 -0200 Subject: [PATCH] Fix misspelling --- 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 34dc167e..b4cae636 100644 --- a/content/docs/reference-react-component.md +++ b/content/docs/reference-react-component.md @@ -216,7 +216,7 @@ componentWillReceiveProps(nextProps) `componentWillReceiveProps()` is invoked before a mounted component receives new props. If you need to update the state in response to prop changes (for example, to reset it), you may compare `this.props` and `nextProps` and perform state transitions using `this.setState()` in this method. -Note that React may call this method even if the props have not changed, so make sure to compare the current and next values if you only want to handle changes. This may occur when the parent component causes your component to re-render. +Note that React will call this method even if the props have not changed, so make sure to compare the current and next values if you only want to handle changes. This may occur when the parent component causes your component to re-render. React doesn't call `componentWillReceiveProps()` with initial props during [mounting](#mounting). It only calls this method if some of component's props may update. Calling `this.setState()` generally doesn't trigger `componentWillReceiveProps()`.