react-scroll-loader
v0.0.4
Published
Simple, efficient infinite scroll component for React
Downloads
4
Maintainers
Readme
react-scroll-loader
Simple, efficient infinite scroll component for React
Demo
unsplash.now.sh
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} />