1.0.1 • Published 2 years ago

@ricardo-jrm/use-local-state v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

🌘 @ricardo-jrm/use-local-state

State hook that syncs with local storage

build license

author

lang version size


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