Realar
Realar state manager targeted to all scale applications up to complex enterprise solutions on a modular architecture. And has an incredible small size 5 kB for all you need.
Usage
You can make stores and "actions" play on runkit
const store = value(0)
const add = store.updater((state, num: number) => state + num)
const inc = store.updater(state => state + 1)
And bind to React easily play on codesandbox
const App = () => {
const state = useValue(store)
return <p>{state}
<button onClick={inc}>+</button>
</p>
}
You can make streams play on runkit
const addendum = value('0')
.pre((ev: ChangeEvent<HTMLInputElement>
…