Skip to content

Latest commit

 

History

History
53 lines (38 loc) · 1.71 KB

File metadata and controls

53 lines (38 loc) · 1.71 KB

Agenda

An infinite scroll plugin for React.js

GitHub license npm version GitHub license npm

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-vertical-infinite-scrolling --save

or

yarn add react-vertical-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>