2.0.0 • Published 2 years ago
@ricardojrmcom/use-local-state v2.0.0
🌘 @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
2.0.0
2 years ago