Skip to content

Instantly share code, notes, and snippets.

@dounan
Created October 18, 2017 22:54
Show Gist options
  • Save dounan/ba9268c29602cbb8b95dce8fc94f0192 to your computer and use it in GitHub Desktop.
Save dounan/ba9268c29602cbb8b95dce8fc94f0192 to your computer and use it in GitHub Desktop.
reflective-bind shouldComponentUpdate example
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