0.0.3 • Published 5 years ago
@reredux/reredux v0.0.3
ReRedux
store = createStore 'counter', -> counter: 0
store.addMutations
inc: (m, inc = 1) -> m counter: m.state.counter + inc
...
export default store.connect(Counter)
...
<button
onClick={@props.counterStore.mutations.inc.onClick}
>
Inc
</button>