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.
Traffic · last 30 days stale · no recent hits
total hits 15
actors 2 distinct systems
last hit 22d ago human
top countries 🇺🇸 United States · 🇸🇬 Singapore · 🇫🇷 France · VN · PH
Resources
packageuse-local-storage ↗
API endpoints
full doc /v1/registry/use-local-storage