Unique key to identify the store.
Optionalvalue: ValueType<T>Initial value of the store.
Optionalplugins: Plugin<T>[]Plugins to be applied to the store.
Do not initialize the store. Useful when you want to initialize the store later. Note that the setter function is not available until the store is initialized.
OptionalincludeRegExp: null | 0 | RegExpOptionalexcludeRegExp: RegExp
Use this hook similar to
useStatehook. The difference is that you need to pass a unique key - unique across the app to make this state accessible to all client components.Example