{"library":"use-local-storage","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"3.0.0","tags":["javascript","react","hooks","local storage","localstorage","react hooks local storage","uselocalstorage","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install use-local-storage","imports":["import useLocalStorage from 'use-local-storage'","import useLocalStorage from 'use-local-storage'","const [value, setValue] = useLocalStorage<string>('key')"]},{"cmd":"yarn add use-local-storage","imports":[]},{"cmd":"pnpm add use-local-storage","imports":[]}],"homepage":"https://github.com/nas5w/use-local-storage#readme","github":"https://github.com/nas5w/use-local-storage#readme","docs":null,"changelog":null,"pypi":null,"npm":"use-local-storage","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}