infinity-scroll-list
v1.0.1
Published
A versatile optimised infinite scroll React component.
Downloads
4
Readme
React Infinity Scroll List
A versatile optimised infinite scroll React component.
Installation
npm i react-infinity-scroll-list --save
Examples
import React from 'react';
import InfiniteScroll from 'infinite-scroll-component';
function App() {
return (
<div>
<InfiniteScroll data={data} drawElement={renderChild} size={20}></InfiniteScroll>
</div>
);
}
// List Item
function renderChild(item,key){
return(<div key={key} className="child-comp">{item.title}</div>);
}
Props
Size is optional default value is 10.