@rooks/use-localstorage
Localstorage hook for React. Syncs with localstorage values across components and browser windows automatically.
Sets and retrieves a key from localStorage and subscribes to it for updates across windows.
Installation
npm install --save @rooks/use-localstorage
Importing the hook
;
Usage
{ const value set remove = ; return <p> Value is value <button => Increment </button> <button =>Remove </button> </p> ;} ;