Fixed typo in reconciliation docs.

This commit is contained in:
Jim
2016-03-04 10:01:35 -08:00
committed by jim
parent b89e7d25d5
commit 0ba1073e17
+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.