use-localstorage-react
A custom hook to save state to localstorage!
Demo
Usage
Import it
Set key and initial value
const count setCount =
Reload to see that the value stays the same.
This package has been deprecated
Author message:
This package is no longer being maintained. This hook will be included in the the @24/react-hooks package.
A custom hook to save state to localstorage!
const count setCount =
Reload to see that the value stays the same.
npm i use-localstorage-react
1
1.0.4
MIT
3.36 kB
6