Skip to content

Hancoson/react-vertical-infinite-scrolling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>