react-addons-deep-compare
v0.0.1
Published
deepCompare is a helper function on ES6 classes with React
Downloads
472
Readme
react-addons-deep-compare
Examples
var deepCompare = require('react-addons-deep-compare');
export class SampleComponent extends React.Component {
shouldComponentUpdate(nextProps, nextState) {
return deepCompare(this, nextProps, nextState);
}
render() {
return <div className={this.props.className}>foo</div>;
}
}