react-observer11
v1.0.1
Published
```javascript this.info = { count: 0 } import { ObserveState } from '../observe'
Downloads
2
Readme
A observer for react data, below is a simple use
this.info = {
count: 0
}
import { ObserveState } from '../observe'
let ob = new ObserveState(this.info, 'count', (n,v) => console.log('now we change', n, v));
// the wacther is based on the defineProperty, is not applied to react state