Overview of react-infinite-scroll-component APIs
masterThe library provides two primary ways to implement infinite scrolling:
InfiniteScrollcomponent: The recommended approach for most cases. It handles the loader,endMessage, pull-to-refresh, and inverse scroll UI automatically.useInfiniteScrollhook: Use this when you need full control over your markup and own the HTML structure. The hook manages theIntersectionObserverand provides a sentinel ref.