@ricardo-jrm/use-local-state
v1.0.1
Published
State hook that syncs with local storage
Downloads
28
Maintainers
Readme
🌘 @ricardo-jrm/use-local-state
State hook that syncs with local storage
Install
npm install @ricardo-jrm/use-local-state
yarn add @ricardo-jrm/use-local-state
Usage
import { useLocalState } from '@ricardo-jrm/use-local-state';
const [example, setExample] = useLocalState<number>('my-example', 1337);
License
MIT © Ricardo <l1b3r_-> Mota (@ricardo-jrm)
Bootstrapped with 🟣@ricardo-jrm/supernova