mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-26 07:25:20 +00:00
Update docs to indicate that componentDDidUpdate is fired after changes are flushed to the DOM. Fixes #2796
This commit is contained in:
@@ -195,7 +195,7 @@ Use this as an opportunity to perform preparation before an update occurs.
|
||||
componentDidUpdate(object prevProps, object prevState)
|
||||
```
|
||||
|
||||
Invoked immediately after updating occurs. This method is not called for the initial render.
|
||||
Invoked immediately after the component's updates are flushed to the DOM. This method is not called for the initial render.
|
||||
|
||||
Use this as an opportunity to operate on the DOM when the component has been updated.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user