0.0.4 • Published 7 years ago
react-scroll-loader v0.0.4
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} />