react-localstorage-hooks
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

react-localstorage-hooks

A collection of React hooks for reactively managing localStorage.


Installation

npm i react-localstorage-hooks

Documentation

Usage

  • Make sure your project is using React 16.18.0 or above.

  • Install the package using npm or yarn

    npm i react-localstorage-hooks
  • Import the hooks either using ES6 named imports:

    import { useLocalStorageState } from 'react-localstorage-hooks';

    or importing each hook directly from lib:

    import useLocalStorageState from 'react-localstorage-hooks/lib/useLocalStorageState/useLocalStorageState';

License

This package is licensed under MIT

Package Sidebar

Install

npm i react-localstorage-hooks

Weekly Downloads

97

Version

1.0.2

License

MIT

Unpacked Size

23.9 kB

Total Files

27

Last publish

Collaborators

  • akashhamirwasia