1.0.1 • Published 2 years ago
@ricardo-jrm/use-local-state v1.0.1
🌘 @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