@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