react-vertical-infinite-scrolling
v1.0.4
Published
An infinite scroll plugin for React.js
Downloads
243
Maintainers
Readme
React-vertical-infinite-scrolling
Intro
This plugin is an infinite scroll plugin for React.js, it can help you create an infinite scroll list fastly.
Installation
npm i react-ivertical-infinite-scrolling --save
or
yarn add react-ivertical-infinite-scrolling
Usage & Guide
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>