Categorystorage
All hooks4 guides

Storage Hooks

Typed localStorage and sessionStorage with JSON, defaults, and cross-tab sync.

StorageBeginnerSSR-safe

useLocalStorage

Typed localStorage state + tab sync.

import { useLocalStorage } from '@/hooks';
hooks/storage/useLocalStorage.tsOpen guide
StorageBeginnerSSR-safe

useStorage

Pick local or session storage.

import { useStorage } from '@/hooks';
hooks/storage/useStorage.tsOpen guide