useLocalStorage
React hook for managing state in local storage using useStorage
.
Installation
Example
Usage
Reference
Dependencies
Parameters
key
: The key to use for the storage.
initialValue
: The initial value to use.
Return Value
An array containing the stateful value, a setter function, and a boolean indicating if the value exists in the storage before the first render.
Links
use-local-storage.ts