Merge pull request #6183 from jimfb/rec-update

Fixed typo in reconciliation docs.
(cherry picked from commit 25c2bfcd52)
This commit is contained in:
Jim
2016-03-07 11:45:50 -08:00
committed by Paul O’Shannessy
parent b17b2ea3f6
commit 4c4bfba2c3
+1 -1
View File
@@ -76,7 +76,7 @@ After the attributes have been updated, we recurse on all the children.
### Custom Components
We decided that the two custom components are the same. Since components are stateful, we cannot just use the new component and call it a day. React takes all the attributes from the new component and calls `component[Will/Did]ReceiveProps()` on the previous one.
We decided that the two custom components are the same. Since components are stateful, we cannot just use the new component and call it a day. React takes all the attributes from the new component and calls `componentWillReceiveProps()` and `componentWillUpdate()` on the previous one.
The previous component is now operational. Its `render()` method is called and the diff algorithm restarts with the new result and the previous result.