Skip to content

Instantly share code, notes, and snippets.

@engineersamuel
Created January 6, 2016 12:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save engineersamuel/8e3f518e2d621a05da36 to your computer and use it in GitHub Desktop.
Save engineersamuel/8e3f518e2d621a05da36 to your computer and use it in GitHub Desktop.
shouldComponentUpdate
shouldComponentUpdate(nextProps, nextState) {
return !shallowEqual(this.props, nextProps) || !shallowEqual(this.state, nextState);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment