Skip to content

Boost your React development with oceaners-hooks, the ultimate collection of reusable hooks 🐋

Notifications You must be signed in to change notification settings

fers4t/oceaners-hooks

Repository files navigation

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