in ReactJS by (1.4k points)

What is componentDidUpdate method?

1 Answer

0 votes
by (1.4k points)

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
0 votes
0 votes
asked Jul 2, 2019 in ReactJS by Venkatshastri (1.4k points)
0 votes
asked Jun 19, 2020 in ReactJS by JackTerrance (2.8k points)
0 votes
0 votes
0 votes
0 votes
asked Jun 19, 2020 in ReactJS by JackTerrance (2.8k points)
...