Creates a store with plugins.
// in hook file, e.g., store.tsexport const useMyRGS = create<type>(key, value, plugins);// in component fileconst [state, setState] = useMyRGS(); Copy
// in hook file, e.g., store.tsexport const useMyRGS = create<type>(key, value, plugins);// in component fileconst [state, setState] = useMyRGS();
Unique key to identify the store.
Optional
Initial value of the store.
Plugins to be applied to the store.
Creates a store with plugins.
Example