setState
const actions = {
increment: amount => state => void (state.count += amount)
}
const store = reim({}, {actions})
// later...
store.increment(10)Last updated
const actions = {
increment: amount => state => void (state.count += amount)
}
const store = reim({}, {actions})
// later...
store.increment(10)Last updated