Simple, efficient infinite scroll component for React
npm install react-scroll-loader --save
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 |
<Infinite requestHandler={this.getNextPage} atEnd={atEnd} />