This is a commonly used React hooks toolbox, designed to facilitate rapid daily development.
- Base - All relatively basic Hook methods.
- Input - Related to input controls.
- Position - Related to position control.
- Time - Time-related (e.g. timer).
yarn add @acrool/react-hooks
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';