react-intersection-observer for loading more data

in dev3 years ago

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.