What is componentDidUpdate used for?
Component Lifecycle
Audio flashcard · 0:11Nortren·
What is componentDidUpdate used for?
0:11
componentDidUpdate runs after every update of a class component except the first render. It receives the previous props and state, allowing comparison with current values before performing side effects like fetching new data.