Created
January 6, 2016 12:54
-
-
Save engineersamuel/8e3f518e2d621a05da36 to your computer and use it in GitHub Desktop.
shouldComponentUpdate
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
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