react-storage-hook
Javascript library for synchronously managing localStorage / sessionStorage. Typescript types included.
Installation
yarn add react-storage-hook
Usage
See also live example with sourcemaps and the local copy.
;
The checked state will be stored and synchronized between instances of the page.
The typescript types are authoratative for API scheme.