Skip to content

Instantly share code, notes, and snippets.

@dounan
Last active October 24, 2017 20:48
Show Gist options
  • Save dounan/02de62c1c2349073523b264bc8fde639 to your computer and use it in GitHub Desktop.
Save dounan/02de62c1c2349073523b264bc8fde639 to your computer and use it in GitHub Desktop.
reflective-bind PureComponent monkeypatch
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