oceaners-hooks
TypeScript icon, indicating that this package has built-in type declarations

1.3.1 • Public • Published

oceaners-hooks

Most using hooks for our team. IN DEVELOPMENT

NPM

Install

npm install --save oceaners-hooks@next

Usage

import React from 'react';
import { useBoolean, useFocus } from 'oceaners-hooks';

export default function Home() {
   const [isFocused, bind] = useFocus();
   console.log({ isFocused });

   return (
      <div>
         <button {...bind}>toggle</button>
      </div>
   );
}

License

MIT © fers4t

/oceaners-hooks/

    Package Sidebar

    Install

    npm i oceaners-hooks

    Weekly Downloads

    4

    Version

    1.3.1

    License

    ISC

    Unpacked Size

    351 kB

    Total Files

    432

    Last publish

    Collaborators

    • fers4t