@ricardo-jrm/use-local-state
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

🌘 @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


Package Sidebar

Install

npm i @ricardo-jrm/use-local-state

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

16.3 kB

Total Files

30

Last publish

Collaborators

  • ricardo-jrm