rlh

react-localstorage-hooks

πŸ”„ A collection of React hooks for reactively managing localStorage.

Showing:

Popularity

Downloads/wk

24

GitHub Stars

7

Maintenance

Last Commit

2mos ago

Contributors

1

Package

Dependencies

1

License

MIT

Type Definitions

Built-In

Tree-Shakeable

Yes?

Categories

Readme

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

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100