A React hook library (v1.1.9) providing useLocalStorage, useSessionStorage, and useCookieStorage for state management across browser storage APIs. Minimal API surface with three named hooks, each accepting a key and initial value. Suitable for small-to-medium React projects needing persistent state without a state management library. Last updated in 2023; low release cadence.
npm install react-mkx-storageNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage of useLocalStorage hook with a default value and input binding.
Manually listen to storage events if cross-tab sync is needed.
Store smaller serialized data or consider backend storage for large payloads.
Only pass JSON-serializable initial values.
Use correct named imports: import { useLocalStorage } from 'react-mkx-storage'Wrap hook usage in a component that is only rendered client-side.
Ensure the component runs in browser context and key is consistent.