Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@minko-fe/react-hook

hemengke1997153MIT0.4.0TypeScript support: included

react-hook

react-hook

readme

react-hook

more than ahooks and react-use

Usage

new hooks desc
useControlledState controlled state
useLayoutUpdateEffect layoutEffect for update
useLockScroll lock scroll
useStrictInput strict input
useUrlState url
useEffectOnce useEffect but trigger once only (effect triggered twice in React strict mode)

changelog

@minko-fe/react-hook

0.4.0

Minor Changes

  • feat: add more hook

0.3.7

Patch Changes

  • chore: upgrade deps

0.3.6

Patch Changes

  • fix: react-use cjs support

0.3.5

Patch Changes

0.3.4

Patch Changes

0.3.3

Patch Changes

  • react-use cjs support

0.3.2

Patch Changes

0.3.1

Patch Changes

  • fix: export

0.3.0

Minor Changes

  • add use-global-style for spa css modules solution

Patch Changes

0.2.7

Patch Changes

0.2.6

Patch Changes

  • update

0.2.5

Patch Changes

0.2.4

Patch Changes

  • useSetState patch can't get latest value

0.2.3

Patch Changes

  • enhance dts exports

0.2.2

Patch Changes

0.2.1

Patch Changes

0.2.0

Minor Changes

  • add useSetState plugin refactor deps

Patch Changes

0.1.17

Patch Changes