useStorageBackedState
JSON →Custom React hook (v2.0.5) for state management like `useState` but persisted to `localStorage`. Supports `sessionStorage`, custom serializers, and real-time synchronization across tabs via storage events. Requires React 18 or 19. Ships TypeScript types. More lightweight than alternatives like `react-storage-hooks` or `use-persisted-state`, with a focus on simple hook-based API and external get/set/subscribe utilities.
Traffic · last 30 days ↓33% vs prev 7d
total hits 15
actors 4 distinct systems
last hit 12d ago AhrefsBot
top countries 🇺🇸 United States · 🇸🇬 Singapore · VN · 🇨🇦 Canada · 🇫🇷 France
Resources
packageuse-storage-backed-state ↗