react-hooks

A collection of React Hooks.

MIT License

Downloads
68.7K
Stars
61
Committers
2
react-hooks - v1.20.0 Latest Release

Published by wojtekmaj 6 months ago

What's new?

  • Added support for React 19.
react-hooks - v1.19.0

Published by wojtekmaj 9 months ago

What's new?

  • Added useDebouncedEffect, useDebouncedState and useDebouncedValue hooks.
react-hooks - v1.18.1

Published by wojtekmaj about 1 year ago

What's new?

react-hooks - v1.18.0

Published by wojtekmaj over 1 year ago

What's new?

  • Added support for native ESM modules (#92).

Bug fixes

  • @types/react is now optional peerDependency, which eliminates errors caused by duplicate typings.
react-hooks - v1.17.2

Published by wojtekmaj over 1 year ago

Bug fixes

  • Rolled back "Rewritten hooks using useSyncExternalStore (#24)" as this accidentally caused the package to no longer be compatible with React 17. This will be re-added in a future release.
  • Fixed useEventListener hook not accepting narrow global events like UIEvent.
react-hooks - v1.17.1

Published by wojtekmaj over 1 year ago

Bug fixes

  • Fixed useEventListener hook not accepting narrow window events like StorageEvent.
  • Fixed useLocalStorage hook resetting value to null if another localStorage key was changed and current key was null.
react-hooks - v1.17.0

Published by wojtekmaj over 1 year ago

What's new?

  • Rewritten hooks using useSyncExternalStore (#24).
  • Improved types in usePermissionState.
react-hooks -

Published by wojtekmaj over 1 year ago

Bug fixes

  • Fixed types not picked up correctly by some tools (e.g. Next.js).
react-hooks -

Published by wojtekmaj almost 2 years ago

Bug fixes

  • Fixed missing reexport of useScrollLeftPercent and useScrollTopPercent hooks.
react-hooks -

Published by wojtekmaj almost 2 years ago

What's new?

  • Added useScrollLeftPercent and useScrollTopPercent hooks.
react-hooks -

Published by wojtekmaj almost 2 years ago

Bug fixes

  • Fixed ESM build not working on some configurations (e.g. Next.js).
react-hooks -

Published by wojtekmaj almost 2 years ago

What's new?

  • Converted package to TypeScript (#33).
react-hooks -

Published by wojtekmaj almost 2 years ago

Bug fixes

  • Fixed usePermissionState causing exception on iOS Safari when used for getting notifications permission state.
react-hooks -

Published by wojtekmaj almost 2 years ago

What's new?

  • Added usePermissionState hook
react-hooks - v1.13.0

Published by wojtekmaj over 2 years ago

What's new?

  • Added support for React 18.
react-hooks -

Published by wojtekmaj almost 3 years ago

What's new?

  • Added support for server-side rendering.
react-hooks -

Published by wojtekmaj over 3 years ago

What's new?

  • Add support for updater function in useLocalStorage hook
react-hooks -

Published by wojtekmaj over 3 years ago

What's new?

  • Added useLocalStorage hook
react-hooks -

Published by wojtekmaj over 3 years ago

Bug fixes

  • Fixed toggleValue returned by useToggle not working properly when memoized
react-hooks -

Published by wojtekmaj over 3 years ago

What's new?

  • Added usePrefersColorSchemeDark, usePrefersColorSchemeLight, usePrefersReducedMotion, usePrefersReducedTransparency hooks
Package Rankings
Top 4.88% on Npmjs.org
Badges
Extracted from project README
npm CI
Related Projects