Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/twobin/shallow-compare-decorator
shallow compare and deep compare in shouldComponentUpdate
https://github.com/twobin/shallow-compare-decorator
Last synced: 2 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 (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-12-07T06:14:13.000Z (about 8 years ago)
- Last Synced: 2024-09-17T20:10:26.392Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 2
- Watchers: 3
- 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
[![npm version](https://badge.fury.io/js/shallow-compare-decorator.png)](https://badge.fury.io/js/shallow-compare-decorator)
[![build status](https://travis-ci.org/twobin/shallow-compare-decorator.svg)](https://travis-ci.org/twobin/shallow-compare-decorator)
[![npm downloads](https://img.shields.io/npm/dt/shallow-compare-decorator.svg?style=flat-square)](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() { }
}
```