npm.io
1.1.3 • Published 1 year ago

@acrool/react-hooks

Licence
MIT
Version
1.1.3
Deps
0
Size
36 kB
Vulns
0
Weekly
0
Stars
8

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

^1.1.1 support react >=18.0.0 <20.0.0

Features

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

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

Keywords