UNPKG

use-storage-state

Version:

React hook that you can wire with any Storage compatible API like `localStorage`, `sessionStorage`, or a custom one.

5 lines (4 loc) 170 B
import useStorageState, {} from "./src/useStorageState.js"; import memoryStorage from "./src/memoryStorage.js"; export default useStorageState; export { memoryStorage };