react-scroll-loader
Simple, efficient infinite scroll component for React
Demo
Install
npm install react-scroll-loader --save
Props
Prop | Description |
---|---|
atEnd |
Set to true if there's no more content to load |
loadingIcon |
Image url to override the default loading animation |
requestHandler |
Function to call when we've scrolled to the bottom of the page |
Example
<Infinite requestHandler=thisgetNextPage atEnd=atEnd />