@@ -13,15 +13,14 @@ MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.or
1313<br />
1414<div >
1515 <p align =" center " >
16- A collection of beautiful (and hopefully useful) React hooks to speed-up your
17- components and hooks development
16+ A collection of tailor-made React hooks to enhance your development process and make it faster.
1817 </p >
1918</div >
2019
2120<div >
2221 <p align =" center " >
2322 <a href="https://antonioru.github.io/beautiful-react-hooks/" target="_blank">
24- 🌟 Live playground here 🌟
23+ 🌟 Hooks Playground 🌟
2524 </a>
2625 </p >
2726</div >
@@ -38,13 +37,13 @@ MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.or
3837
3938## 💡 Why?
4039
41- React custom hooks allow to abstract components' business logic into single reusable functions.< br />
42- So far, we've found that most of the hooks we've created and therefore shared between our internal projects have quite often a similar gist
43- that involves callback references, events and components' lifecycle. < br />
44- For this reason we've tried to sum up that gist into ` beautiful-react-hooks ` : a collection of ( * hopefully * ) useful React hooks to possibly
45- help other companies and professionals to speed up their development process.< br />< br />
46- Furthermore, we created a concise yet concrete API having in mind the code readability, focusing to keep the learning curve as lower as
47- possible so that the it can be used and shared in bigger teams.
40+ Custom React hooks allow developers to abstract the business logic of components into single, reusable functions.\
41+ I have noticed that many of the hooks I have created and shared across projects involve callbacks, references, events, and dealing with the
42+ component lifecycle.\
43+ Therefore, I have created ` beautiful-react-hooks ` , a collection of useful [ React hooks] ( https://beta.reactjs.org/reference/react ) that may
44+ help other developers speed up their development process.\
45+ Moreover, I have strived to create a concise and practical API that emphasizes code readability, while keeping the learning curve as low as
46+ possible, making it suitable for larger teams to use and share
4847
4948** -- Please before using any hook, read its documentation! --**
5049
@@ -57,7 +56,7 @@ possible so that the it can be used and shared in bigger teams.
5756<div >
5857 <p align =" center " >
5958 <a href="https://antonioru.github.io/beautiful-react-hooks/" target="_blank">
60- 🌟 Live playground here 🌟
59+ 🌟 Hooks Playground 🌟
6160 </a>
6261 </p >
6362</div >
@@ -76,6 +75,14 @@ by using `yarn`:
7675$ yarn add beautiful-react-hooks
7776```
7877
78+ ## Basic usage
79+
80+ importing a hooks is as easy as the following straightforward line:
81+
82+ ``` ts static
83+ import useSomeHook from ' beautiful-react-hooks/useSomeHook'
84+ ```
85+
7986## 🎨 Hooks
8087
8188* [ useQueryParam] ( docs/useQueryParam.md )
@@ -127,36 +134,29 @@ $ yarn add beautiful-react-hooks
127134<div >
128135 <p align =" center " >
129136 <a href="https://antonioru.github.io/beautiful-react-hooks/" target="_blank">
130- 🌟 Live playground here 🌟
137+ 🌟 Hooks Playground 🌟
131138 </a>
132139 </p >
133140</div >
134141
135142## Peer dependencies
136143
137- Some hooks are built on top of third-party libraries (rxjs, react-router-dom, redux), therefore you will notice those libraries listed as
138- peer dependencies. You don't have to install these dependencies unless you directly use those hooks.
144+ Some hooks are built using third-party libraries (such as rxjs, react-router-dom, redux). As a result, you will see these libraries listed
145+ as peer dependencies.\
146+ Unless you are using these hooks directly, you need not install these dependencies.
139147
140148## Contributing
141149
142150Contributions are very welcome and wanted.
143151
144- To submit your custom hook, please make sure your read our [ CONTRIBUTING] ( ./CONTRIBUTING.md ) guidelines.
152+ To submit your custom hook, make sure you have thoroughly read and understood the [ CONTRIBUTING] ( ./CONTRIBUTING.md ) guidelines.
145153
146- ** Before submitting** a new merge request, please make sure:
154+ ** Prior to submitting your pull request** : please take note of the following
147155
1481561 . make sure to write tests for your code, run ` npm test ` and ` npm build ` before submitting your merge request.
149- 2 . in case you're creating a custom hook, make sure you've added the documentation (* you can possibly use
157+ 2 . in case you're creating a custom hook, make sure you've added the documentation (* you may use
150158 the [ HOOK_DOCUMENTATION_TEMPLATE] ( ./HOOK_DOCUMENTATION_TEMPLATE.md ) to document your custom hook* ).
151159
152- ### Made with
153-
154- * [ React] ( https://reactjs.org/ )
155- * [ Mocha] ( https://mochajs.org/ )
156- * [ Chai] ( https://www.chaijs.com/ )
157- * [ @testing-library/react ] ( https://testing-library.com/docs/react-testing-library/intro )
158- * [ @testing-library/react-hooks ] ( https://react-hooks-testing-library.com/ )
159-
160- ---
160+ ## Credits
161161
162162Icon made by [ Freepik] ( https://www.flaticon.com/authors/freepik ) from [ www.flaticon.com ] ( https://www.flaticon.com/free-icon/hook_1081812 )
0 commit comments