1.0.2 • Published 2 years ago

react-localstorage-hooks v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Installation

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