use-local-storage
JSON →A flexible React Hook for persisting state to localStorage, with an API similar to React's useState. Version 3.0.0 supports React >=16.8.1, TypeScript types, SSR, and cross-tab synchronization. It uses JSON.stringify/JSON.parse by default but allows custom serializers, parsers, and error loggers. Key differentiators: automatic cross-context sync, type inference, and the ability to remove a key by setting its value to undefined. Released under MIT, actively maintained.
Resources
packageuse-local-storage ↗
API endpoints
full doc /v1/registry/use-local-storage