1.0.1 • Published 5 years ago

react-observer11 v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

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