Named State
Calling with the same name returns the same singleton store.
Named mode designed for internal component calls
Named mode can be easily used within React components. Using the same name and storage option reuses the same entry and return object. Updates that depend on previous values, like incrementing numbers, setCount((prev) => prev + 1) should be written in the form of.
tsx