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