0.1.2 • Published 7 years ago

react-loadmore-list v0.1.2

Weekly downloads
26
License
ISC
Repository
github
Last release
7 years ago

Load More List

Install

$ npm i --save react-loadmore-list

Use it in any component

import React from 'react';
import Loadmore from 'react-loadmore-list';

const App = () => {
  const arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];

  return (
    <Loadmore visible={2} increment={3} >
      { arr.map((a, i) => {
        return (
          <div key={i}>{a}</div>
        )
      })}
    </Loadmore>
  )
}

Props

NameTypeRequiredDescription
visibleIntegerYesNumber of items displayed at the start
incrementIntegerYesIncrease in displayed number of items

Development

$ git clone https://github.com/hkureshy/react-loadmore.git
$ cd react-loadmore
$ npm install
$ npm start

Feel free to contact if you find any problem using this package.
Email: hassnainkureshy@gmail.com