Created
October 18, 2017 22:54
-
-
Save dounan/ba9268c29602cbb8b95dce8fc94f0192 to your computer and use it in GitHub Desktop.
reflective-bind shouldComponentUpdate example
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
import {shouldComponentUpdate} from "reflective-bind"; | |
class MyComponent extends React.Component { | |
shouldComponentUpdate(nextProps, nextState) { | |
return shouldComponentUpdate(this, nextProps, nextState); | |
} | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment