Clarify invocation order of componentDidMount
OP is delivering on promise made here: https://discuss.reactjs.org/t/how-do-you-invoke-the-render-callback-in-jsx/1744
Tyler Brock committed
Aug 19, 2015 at 10:04 UTC
1e10bb5923b32ab3b6c86c65c7ed18f693056da5
1 file changed
+1
-1
docs/docs/ref-03-component-specs.md
+1
-1
@@ -121,7 +121,7 @@ Invoked once, both on the client and server, immediately before the initial rend
121
componentDidMount()
122
```
123
124
-Invoked once, only on the client (not on the server), immediately after the initial rendering occurs. At this point in the lifecycle, the component has a DOM representation which you can access via `React.findDOMNode(this)`.
124
+Invoked once, only on the client (not on the server), immediately after the initial rendering occurs. At this point in the lifecycle, the component has a DOM representation which you can access via `React.findDOMNode(this)`. The `componentDidMount()` method of child components is invoked before that of parent components.
125
126
If you want to integrate with other JavaScript frameworks, set timers using `setTimeout` or `setInterval`, or send AJAX requests, perform those operations in this method.
127