Skip to content

acrool/acrool-react-hooks

Repository files navigation

Acrool React Hooks

Acrool React Hooks Logo

This is a commonly used React hooks toolbox, designed to facilitate rapid daily development.

NPM npm npm

npm downloads npm

Features

  • Base - All relatively basic Hook methods.
  • Input - Related to input controls.
  • Position - Related to position control.
  • Time - Time-related (e.g. timer).

Install

yarn add @acrool/react-hooks

Examples

These are examples of imports for various types. Refer to the documentation inside each library for other methods.

import {useTextFieldFocus} from '@acrool/react-hooks/input';
import {useClickOutSite} from '@acrool/react-hooks/position';
import {useCountDownTimer} from '@acrool/react-hooks/time';
import {useCountUpTimer} from '@acrool/react-hooks/time';

License

MIT © Acrool & Imagine