react-hooks-crocode

1.0.1 • Public • Published

react-hooks

A collection of useful react-hooks

Install

npm install --save react-hooks-crocode

Use

import { useLocalStorage } from 'react-hooks-crocode';

const MyComponent = (props) => {
  const [token, setToken] = useLocalStorage('TOKEN'); // by default, token = null
}

Hooks

useSessionStorage

useLocalStorage

Readme

Keywords

Package Sidebar

Install

npm i react-hooks-crocode

Weekly Downloads

3

Version

1.0.1

License

MIT

Unpacked Size

3.06 kB

Total Files

6

Last publish

Collaborators

  • luongnv89