mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
Merge pull request #4660 from TylerBrock/patch-2
Clarify invocation order of componentDidMount
This commit is contained in:
commit
2f96d70087
1 file changed
+1
-1
@@ -121,7 +121,7 @@ Invoked once, both on the client and server, immediately before the initial rend
|
||||
componentDidMount()
|
||||
```
|
||||
|
||||
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)`.
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
|
||||
Reference in new issue
Block a user