react-only-update-on-change
v0.0.1
Published
Implementation of React components' shouldComponentUpdate for stateful and propful components.
Downloads
4
Maintainers
Readme
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"),
/* ... */
});
/* ... */