beautiful-react-hooks
A collection of beautiful (and hopefully useful) React hooks to speed-up your components and hooks development

beautiful-react-hooks downloads beautiful-react-hooks version beautiful-react-hooks license

beautiful-react-hooks類似套件:
npm下載趨勢
3 年
🌟 在 beautiful-react-hooks 的 README.md 中顯示即時使用量圖表,只需複製下面的代碼。
## Usage Trend
[![Usage Trend of beautiful-react-hooks](https://npm-compare.com/img/npm-trend/THREE_YEARS/beautiful-react-hooks.png)](https://npm-compare.com/beautiful-react-hooks#timeRange=THREE_YEARS)
Cumulative GitHub Star Trend
🌟 在 beautiful-react-hooks 的 README.md 中顯示 GitHub stars 趨勢圖表,只需複製下面的代碼。
## GitHub Stars Trend
[![GitHub Stars Trend of beautiful-react-hooks](https://npm-compare.com/img/github-trend/beautiful-react-hooks.png)](https://npm-compare.com/beautiful-react-hooks)
統計詳情
套件
下載數
Stars
大小
Issues
發布時間
許可
beautiful-react-hooks27,2578,364343 kB88 個月前MIT
beautiful-react-hooks 的 README

CI/CD Coverage StatusLicense:
MIT npm GitHub stars

Beautiful React Hooks


A collection of tailor-made React hooks to enhance your development process and make it faster.

Usage example

🇬🇧 English | 🇨🇳 简体中文 | 🇮🇹 Italiano | 🇪🇸 Español | 🇺🇦 Ukrainian | 🇧🇷 Brazilian Portuguese | 🇵🇱 Polski | 🇯🇵 日本語 | 🇹🇷 Türkçe

💡 Why?

Custom React hooks allow developers to abstract the business logic of components into single, reusable functions.
I have noticed that many of the hooks I have created and shared across projects involve callbacks, references, events, and dealing with the component lifecycle.
Therefore, I have created beautiful-react-hooks, a collection of useful React hooks that may help other developers speed up their development process.
Moreover, I have strived to create a concise and practical API that emphasizes code readability, while keeping the learning curve as low as possible, making it suitable for larger teams to use and share t -- Please before using any hook, read its documentation! --

☕️ Features

  • Concise API
  • Small and lightweight
  • Easy to learn

🕺 Install

by using npm:

$ npm install beautiful-react-hooks

by using yarn:

$ yarn add beautiful-react-hooks

Basic usage

importing a hooks is as easy as the following straightforward line:

import useSomeHook from 'beautiful-react-hooks/useSomeHook'

🎨 Hooks

Peer dependencies

Some hooks are built using third-party libraries (such as rxjs, react-router-dom, redux). As a result, you will see these libraries listed as peer dependencies.
Unless you are using these hooks directly, you need not install these dependencies.

Contributing

Contributions are very welcome and wanted.

To submit your custom hook, make sure you have thoroughly read and understood the CONTRIBUTING guidelines.

Prior to submitting your pull request: please take note of the following

  1. make sure to write tests for your code, run npm test and npm build before submitting your merge request.
  2. in case you're creating a custom hook, make sure you've added the documentation (you may use the HOOK_DOCUMENTATION_TEMPLATE to document your custom hook).

Credits

Icon made by Freepik from www.flaticon.com