From d95bb1119e04966dee9e4bf347c2be19535d0ea6 Mon Sep 17 00:00:00 2001 From: alexandermckay Date: Thu, 31 Jan 2019 13:00:54 +0000 Subject: [PATCH] Updated the text as suggested by @Pomax in issue: #2796 --- content/docs/reference-react-component.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/docs/reference-react-component.md b/content/docs/reference-react-component.md index 0962fffeecb..d3d970e1e0d 100644 --- a/content/docs/reference-react-component.md +++ b/content/docs/reference-react-component.md @@ -208,9 +208,9 @@ You **may call `setState()` immediately** in `componentDidMount()`. It will trig componentDidUpdate(prevProps, prevState, snapshot) ``` -`componentDidUpdate()` is invoked immediately after updating occurs. This method is not called for the initial render. +`componentDidUpdate()` is invoked immediately after the component's associated DOM gets updated. 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. 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). +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). ```js componentDidUpdate(prevProps) {