Local Storage hook for React
npm install @rooks/use-localstorage```
npm install rooks
or
``
yarn add rooks
Rooks is completely treeshakeable and if you use only 1 of the 50+ hooks in the package, only that hook will be bundled with your code. Your bundle will only contain the hooks that you need. Cheers!
!Build Status   
Sets and retrieves a key from localStorage and subscribes to it for updates across windows.
``
npm install --save @rooks/use-localstorage
`javascript`
import useLocalstorage from "@rooks/use-localstorage";
`jsx
function Demo() {
const [value, set, remove] = useLocalstorage("my-value", 0);
// Can also be used as {value, set, remove}
return (
Value is {value}
render(
``