Skip to content

Winterfulllll/react-hooks

 
 

Repository files navigation

@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 - Docs
  • useDebounce - Docs
  • useDidUpdateEffect - Docs
  • useKeyboardListNavigation - Docs
  • useIsComponentMounted - Docs
  • useOnOutsideClick - Docs
  • useDeepCompareEffect - Docs

Commands

Install dependencies and build

yarn install && yarn build

Storybook Commands

To test your hooks we recommend to use Storybook.

Command Runs
yarn storybook Start Storybook on port 6006

Testing

Run Unit tests:

yarn test

Contribute 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.

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 92.9%
  • MDX 5.0%
  • JavaScript 2.1%