@kommo-crm/react-hooks
v1.3.0
Published
A collection of useful React hooks created for use in different Kommo projects
Readme
@packages/react-hooks
A collection of useful React Hooks created for use in different Kommo projects
Installation
| npm | yarn | pnpm |
| ------------------------------ | --------------------------------- | --------------------------------- |
| npm i @kommo-crm/react-hooks | yarn add @kommo-crm/react-hooks | pnpm add @kommo-crm/react-hooks |
Hooks
useConst- DocsuseDebounce- DocsuseDidUpdateEffect- DocsuseKeyboardListNavigation- DocsuseIsComponentMounted- DocsuseOnOutsideClick- DocsuseDeepCompareEffect- DocsusePrevious- DocsuseIsTouchDevice- DocsuseIsAiming- Docs
Commands
Install dependencies and build
yarn install && yarn buildStorybook Commands
To test your hooks we recommend to use Storybook.
| Command | Runs |
| ---------------------- | ---------------------------------- |
| yarn storybook | Start Storybook on port 6006 |
Testing
Run Unit tests:
yarn testContribute to this repo
Pull requests are welcome. See the contribution guidelines for more information.
Licenses
Source code is under a custom license based on MIT.
