Skip to content

Commit 4c4bfba

Browse files
jimfbzpao
authored andcommitted
Merge pull request facebook#6183 from jimfb/rec-update
Fixed typo in reconciliation docs. (cherry picked from commit 25c2bfc)
1 parent b17b2ea commit 4c4bfba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/docs/ref-08-reconciliation.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ After the attributes have been updated, we recurse on all the children.
7676

7777
### Custom Components
7878

79-
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.
79+
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.
8080

8181
The previous component is now operational. Its `render()` method is called and the diff algorithm restarts with the new result and the previous result.
8282

0 commit comments

Comments
 (0)