acrool / acrool-react-hooks

react hook utils method

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

react hook utils method

License:MIT License


Languages

Language:TypeScript 78.6%Language:JavaScript 12.1%Language:CSS 5.9%Language:Shell 2.3%Language:HTML 1.2%