store.useStore
const App = () => {
const { useStore } = counterStore
const count = useStore(S => S.count)
return <span>{count}</span>
}Last updated
Was this helpful?
const App = () => {
const { useStore } = counterStore
const count = useStore(S => S.count)
return <span>{count}</span>
}Last updated
Was this helpful?
Was this helpful?