Skip to content

Instantly share code, notes, and snippets.

@gianlucacandiotti
Created May 27, 2016 20:08
Show Gist options
  • Save gianlucacandiotti/33a843930a65855de50c9145e173abd7 to your computer and use it in GitHub Desktop.
Save gianlucacandiotti/33a843930a65855de50c9145e173abd7 to your computer and use it in GitHub Desktop.
shouldComponentUpdate(nextProps, nextState) {
console.log('props')
console.log(this.props);
console.log(nextProps);
console.log(this.props === nextProps);
console.log('state')
console.log(this.state);
console.log(nextState);
console.log(this.state === nextState);
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment