react-observer11

1.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i react-observer11

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

2.95 kB

Total Files

3

Last publish

Collaborators

  • miracle_sumail