Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import React from 'react'
import { createStore } from 'stamen'
const CounterStore = createStore({
state: {
count: 10,
},
reducers: {
increment(state) {
state.count++
},
decrement(state) {
state.count--
},
},
effects: {
async asyncIncrement(state) {
state.count++
},
},