react-scroll-loader
March 14, 2017 ยท View on GitHub
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={this.getNextPage} atEnd={atEnd} />