Jul 2, 2019 in React JS
Q:

What is componentDidUpdate method?

1 Answer

0 votes
Jul 2, 2019

Mostly it is used to update the DOM in response to prop or state changes. This will not fire if shouldComponentUpdate() returns false.

Related questions

0 votes
Jul 2, 2019 in React JS
0 votes
Jun 19, 2020 in React JS
...