0.0.1 • Published 10 years ago

react-only-update-on-change v0.0.1

Weekly downloads
7
License
MIT
Repository
github
Last release
10 years ago

react-only-update-on-change

Implementation of React components' shouldComponentUpdate for stateful and propful components. When using this implementation as a components' shouldComponentUpdate, it will only re-render upon state and/or prop change (shallow comparison).

Usage

/** @jsx React.DOM */
var React = require("react");

var MyComponent = React.createClass({
	/* ... */
	shouldComponentUpdate: require("react-only-update-on-change"),
	/* ... */
});
/* ... */