store.dispatch
const App = () => {
const { dispatch } = counterStore
return <button onClick={() => dispatch(A => A.decrement)}>-</button>
}Last updated
Was this helpful?
const App = () => {
const { dispatch } = counterStore
return <button onClick={() => dispatch(A => A.decrement)}>-</button>
}Last updated
Was this helpful?
Was this helpful?