@vasta/rx
v1.0.8
Published
A zero-dependency, simple reactive state library
Readme
vastarx
A zero dependency, simple reactive state
Install
npm install @vasta/rxUsage
import { VastaRX } from '@vasta/rx';
const id = VastaRX.getState('key', (value) => {
console.log('Updated value:', value)
})
const newValue = 1
VastaRX.setState('key', newValue)
VastaRX.unListen(id)
