a demo using react infinite scroller code example
Example 1: react-infinite-scroller
npm install react-infinite-scroller --save
Example 2: react-infinite-scroller
npm install --save react-infinite-scroll-component
or
yarn add react-infinite-scroll-component
// in code ES6
import InfiniteScroll from 'react-infinite-scroll-component';
// or commonjs
var InfiniteScroll = require('react-infinite-scroll-component');