nuclear-record
v0.1.0
Published
Flux as a data structure
Downloads
7
Maintainers
Readme
nuclear-record
Flux as a data structure.
What?
Sometimes you need a simple flux store with only setting/removing data.
nuclear-record
does that for you.
import { Reactor } from 'nuclear-js'
import { createRecord } from 'nuclear-record'
// Use a structured Record Module as a data structure.
const Counter = createRecord({
count: 0
}, 'Counter')
const counter = Counter(reactor)
// increment
counter.actions.set(counter.getters.count() + 1)
install
npm install nuclear-record
licence
MIT