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

Package detail

common-custom-hooks

tejasupmanyu278MIT0.4.0TypeScript support: included

custom-common-hooks is a custom react hooks library, focusing on providing simple and performant custom hooks for common use cases.

react-hooks, hooks, common-custom-hooks, react custom hooks

readme

Introduction

common-custom-hooks ⚛️ is a custom react hooks library, focusing on providing simple and performant custom hooks for common use cases.

Gives the following useful custom hooks -

  • usePrevious
  • useIsMobile
  • useOnChange
  • usePrevious
  • useWindowSize
  • useKeypress
  • useToggle

...and more in upcoming releases.

Usage

Inside your React project, add common-custom-hooks using,

yarn add common-custom-hooks

or with npm:

npm install common-custom-hooks

Issues & Help

  • Raise an issue if you find one.
  • PRs and feature requests welcome! 🎉

License

The MIT License.