mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Merge pull request #6183 from jimfb/rec-update
Fixed typo in reconciliation docs.
(cherry picked from commit 25c2bfcd52)
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user