Nondigestible Purple Mayonnaise

    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

    Install

    npm i react-hooks-crocode

    DownloadsWeekly Downloads

    1

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    3.06 kB

    Total Files

    6

    Last publish

    Collaborators

    • luongnv89