react-intersection-observer for loading more data

pishio(69)
Published in
dev
Words
55
Reading
1 min
Listen
Play
4y

https://github.com/thebuilder/react-intersection-observer#readme

React implementation of the Intersection Observer API to tell you when an element enters or leaves the viewport. Contains both a Hooks, render props and plain children implementation.

The above method is recommended to load data when scrolling down. This library is very lightweight and convenient.

In delog.io, it is implemented using the above library.

react-intersection-observer for loading more data | Ecency