An open API service indexing awesome lists of open source software.

https://github.com/f22hd/custom-hooks

A list of custom hooks examples built with react hooks.
https://github.com/f22hd/custom-hooks

hooks infinite-scroll intersectionobserver react

Last synced: 5 months ago
JSON representation

A list of custom hooks examples built with react hooks.

Awesome Lists containing this project

README

          

## A react hooks that accelerate your development.

#### [useInView](https://github.com/f22hd/custom-hooks) (main branch)
it is an event will fire when an element displayed in screen view. it can be used to add animation, loading heavy content, lazy loading for images ...etc.

#### [useInfiniteScroll](https://github.com/f22hd/custom-hooks/tree/infinite-scroll) (infinite-scroll)
it helps when a developer need to use infinite scroll instead of pagination to load more data.
you can clone the project (infinite-scroll branch) and run the app then scroll down more and more to see the result.

#### How to start?
to see the result just run `npm start` command with selected the proper branch.


#### Contribution
If you would like to add more hooks,

just let me know with your suggestion by opening a [new issue](https://github.com/f22hd/custom-hooks/issues/new) or
creating a new pr for ready hooks.