1.0.1 • Published 5 years ago
react-observer11 v1.0.1
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
1.0.1
5 years ago