Last active
October 24, 2017 20:48
-
-
Save dounan/02de62c1c2349073523b264bc8fde639 to your computer and use it in GitHub Desktop.
reflective-bind PureComponent monkeypatch
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"; | |
React.PureComponent.prototype.shouldComponentUpdate = function( | |
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