Skip to content

Instantly share code, notes, and snippets.

@Pajn
Created October 24, 2018 08:03
Show Gist options
  • Save Pajn/af9b9d702d45b2e8931d1d329acb65bf to your computer and use it in GitHub Desktop.
Save Pajn/af9b9d702d45b2e8931d1d329acb65bf to your computer and use it in GitHub Desktop.
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