The initial state of the store.
Optional
defineActions: null | DefineActions<TState, TActions> = nullA function that defines actions that can modify the state.
Optional
options: StoreOptions<TState> = {}Additional options for the store.
The created store with state management methods.
Creates a store with an initial state and actions that can modify the state.
Example