Created
October 24, 2018 08:03
-
-
Save Pajn/af9b9d702d45b2e8931d1d329acb65bf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
componentDidUpdate(prevProps: any) { | |
console.log(); | |
console.log(); | |
console.log("componentDidUpdate"); | |
Object.entries(this.props).forEach(([key, value]) => { | |
console.log( | |
key, | |
value, | |
value === prevProps[key] ? "===" : "!==", | |
prevProps[key], | |
); | |
}); | |
console.log(); | |
console.log(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment