infinity-scroll-list-react

1.0.7 • Public • Published

React Infinity Scroll List

A versatile optimised infinite scroll React component. It break large data sets down into chunks that can be just-in-time loaded as they are scrolled into view.

Installation

npm i infinity-scroll-list-react --save

Examples

import React from 'react';
import InfiniteScroll from 'infinity-scroll-list-react';

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.

Readme

Keywords

none

Package Sidebar

Install

npm i infinity-scroll-list-react

Weekly Downloads

4

Version

1.0.7

License

ISC

Unpacked Size

22.8 kB

Total Files

7

Last publish

Collaborators

  • ayush-jaiswal