Skip to main content

7.09 Component Update Lifecycle State Changes

App.js
...
shouldComponentUpdate(nextProps, nextState) {
console.log("[App.js] shouldComponentUpdate");
return true;
}
componentDidUpdate() {
console.log("[App.js] componentDidUpdate");
}
...