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>;
}
}
-
Notifications
You must be signed in to change notification settings - Fork 0
deep compare addons for react.js
License
MaxMEllon/react-addons-deep-compare
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
deep compare addons for react.js
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published