React hook for storing data in local or session storage.
Installation
Example
Usage
Reference
Parameters
storage: The storage object to use (localStorage or sessionStorage).
Return Value
A function that, when called with a key and initial value, returns an object containing the stateful value, a setter function, and a boolean indicating if the value exists in the storage before the first render.