Skip to content

A Hook that allows you to save changes in state to local storage.

License

Notifications You must be signed in to change notification settings

adustin21/useLocalState

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

useLocalState

A Hook that allows you to save changes in state to local storage.

Install

npm install https://github.com/adustin21/useLocalState

Usage

import { useLocalState } from 'uselocalstate';

const [state, setState] = useLocalState({keyName: 'state', data: 'data'}) // keyName is a required field

About

A Hook that allows you to save changes in state to local storage.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published