An infinite scroll plugin for React.js
This plugin is an infinite scroll plugin for React.js, it can help you create an infinite scroll list fastly.
npm i react-vertical-infinite-scrolling --save
or
yarn add react-vertical-infinite-scrolling
import ReactInfinitScroller from 'react-vertical-infinite-scrolling'
<ReactInfinitScroller
pageStart={0}
loadMore={(e) => this.loadItems(e)}
hasMore={true || false}
loader={<div className="loader" key={0}>Loading ...</div>}
>
{items} // <-- This is the content you want to load
</ReactInfinitScroller>