1.0.1 • Published 6 years ago
@fishx/observable v1.0.1
@fishx/observable
Installation
yarn add @fishx/observable
Quick Start
import { observable, observe } from '@fishx/observable'
const store = observable({
count: 1,
increment() {
store.count++
},
})
observe(() => {
console.log(store.count)
})
store.increment() // 2
store.increment() // 3