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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    54
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    54
  • 1.0.0
    2
  • 0.1.0
    0

Package Sidebar

Install

npm i react-localstorage-hooks

Weekly Downloads

56

Version

1.0.2

License

MIT

Unpacked Size

23.9 kB

Total Files

27

Last publish

Collaborators

  • akashhamirwasia