https://github.com/twobin/shallow-compare-decorator
shallow compare and deep compare in shouldComponentUpdate
https://github.com/twobin/shallow-compare-decorator
Last synced: 3 months ago
JSON representation
shallow compare and deep compare in shouldComponentUpdate
- Host: GitHub
- URL: https://github.com/twobin/shallow-compare-decorator
- Owner: twobin
- Created: 2016-12-06T05:18:44.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-12-07T06:14:13.000Z (over 8 years ago)
- Last Synced: 2025-03-25T01:17:59.665Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: History.md
Awesome Lists containing this project
README
# shallow-compare-decorator
shallowCompareDecorator and deepCompareDecorator
[](https://badge.fury.io/js/shallow-compare-decorator)
[](https://travis-ci.org/twobin/shallow-compare-decorator)
[](https://www.npmjs.com/package/shallow-compare-decorator)## usage
```
$ npm i -S shallow-compare-decorator
```## docs
### shallowCompareDecorator
```
import shallowCompareDecorator from 'shallow-compare-decorator';@shallowCompareDecorator
export default class Selector extends Component {
render() { }
}
```### deepCompareDecorator
```
import { deepCompareDecorator } from 'shallow-compare-decorator';@deepCompareDecorator
export default class Selector extends Component {
render() { }
}
```