Skip to content

Commit d95bb11

Browse files
Updated the text as suggested by @Pomax in issue: #2796
1 parent dc2deb9 commit d95bb11

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/docs/reference-react-component.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,9 @@ You **may call `setState()` immediately** in `componentDidMount()`. It will trig
208208
componentDidUpdate(prevProps, prevState, snapshot)
209209
```
210210

211-
`componentDidUpdate()` is invoked immediately after updating occurs. This method is not called for the initial render.
211+
`componentDidUpdate()` is invoked immediately after the component's associated DOM gets updated. This method is not called for the initial render.
212212

213-
Use this as an opportunity to operate on the DOM when the component has been updated. This is also a good place to do network requests as long as you compare the current props to previous props (e.g. a network request may not be necessary if the props have not changed).
213+
Use this as an opportunity to further operate on the DOM after a component has updated. This is also a good place to do network requests as long as you compare the current props to previous props (e.g. a network request may not be necessary if the props have not changed).
214214

215215
```js
216216
componentDidUpdate(prevProps) {

0 commit comments

Comments
 (0)