@guanghechen/react-hooks
TypeScript icon, indicating that this package has built-in type declarations

3.0.11 • Public • Published

@guanghechen/react-hooks


@guanghechen/react-hooks provides some common custom react hooks.

Install

  • npm

    npm install --save @guanghechen/react-hooks
  • yarn

    yarn 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

Related

Package Sidebar

Install

npm i @guanghechen/react-hooks

Weekly Downloads

29

Version

3.0.11

License

MIT

Unpacked Size

26.1 kB

Total Files

8

Last publish

Collaborators

  • lemonclown