Introduction
InfiniteScroll
is an component which implements the functionality of infinitely scrolling. It helps you write less code when you want a component scroll infinitely in your application.
Easy to useโ
To make InfiniteScroll
work, you just need to tell it whether your application is loading, whether there are more data and the function you want to call when it reach bottom
No pollutionโ
InfiniteScroll
does not add extra HTML elements to your application. That is, you don't have to worry about adding extra styling because it doesn't break your DOM structure.
Supports reverse scrollingโ
Want to implement a chatbox with infinitely scrolling? InfiniteScroll
provides a reverse version and a hook to scroll to the original position for you.