@guanghechen/react-hooks
v3.0.15
Published
Some custom react hooks.
Maintainers
Readme
@guanghechen/react-hooks provides some common custom react hooks.
Install
npm
npm install --save @guanghechen/react-hookspnpm
pnpm add @guanghechen/react-hooks
Usage
Name | Description
:------------------------:|:---------------------------------------------:
useDeepCompareCallback | Deep compare version of React.useCallback
useDeepCompareEffect | Deep compare version of React.useEffect
useDeepCompareMemo | Deep compare version of React.useMemo
useEventCallback | Create event handler with an always-stable function identity.
useInterval | Execute callback interval in react function components
usePreviousState | Use previous state
