npm react-use 7.0.0
v7.0.0

latest releases: 17.5.1, 17.5.0, 17.4.4...
5 years ago

7.0.0 (2019-03-28)

Bug Fixes

  • ๐Ÿ› fix TypeScript build errors (5c95f28)
  • ๐Ÿ› make sure all paths in usePageLeave return (6655092)
  • ๐Ÿ› track "over" state better in useDrop hook (acc355c)

Features

  • ๐ŸŽธ add clear() to useList, use fn for state updates (b20cf7c)
  • ๐ŸŽธ add createRenderProp function for creating render-props (f4fd748)
  • ๐ŸŽธ add useDrop hook (6e415cf)
  • ๐ŸŽธ add useDropArea hook (676d0de)
  • ๐ŸŽธ add useEvent hook (2a13cfb)
  • ๐ŸŽธ add useKey hook (299fd86)
  • ๐ŸŽธ add useKeyboardJs hook (3516aa6)
  • ๐ŸŽธ add usePageLeave hook (33ac91b)
  • ๐ŸŽธ add useThrottleFn hook that throttles function (0ccdf95)
  • ๐ŸŽธ improve useFullscreen hook (7c38165)
  • ๐ŸŽธ keep keyboard events in useKeyPress hook (00fecab)
  • ๐ŸŽธ refactor useKeyPressEvent hook (c0658f6)
  • ๐ŸŽธ return events from useKeyboardJs hook (aa277b8)
  • ๐ŸŽธ simplify and improve useThrottle hook (452e8d9)
  • ๐ŸŽธ useKeyPress hook now uses useKey, KeyboardJS removed (727743b)

BREAKING CHANGES

  • ๐Ÿงจ useKeyPressEvent hook modified for dependency injection and providing
    event objects to user
  • ๐Ÿงจ KeyboardJS now available anymore in useKeyPress hook, instead it will be
    a separate useKeyPressKJ hook.
  • ๐Ÿงจ useThrottle is now a completely different hook

Don't miss a new react-use release

NewReleases is sending notifications on new releases.