ask-godown
v1.0.5
Published
#### 轻量的集中状态管理库
Downloads
6
Readme
ask-godown
轻量的集中状态管理库
import { createGodown } import 'ask-godown'
type Store = {
value: number;
setValue: () => void;
}
const useGodown = createGodown<Store>((set) => {
return {
value: 0,
setValue: () => {
set((state) => ({value: state.value++ }))
}
}
})