scrollify-list
Super easy client-side infinite scroll for React.
Handy in a situation where you are needed to render a big chunk of data.
Install:
npm install --save scrollify-list
basic example):
How to use ( const generateData = Array500 const App = <ScrollifyList data= render= <h1 key=dataid>dataname</h1> /> ReactDOM
Configure
Property | Explanation |
---|---|
data | Your data! Array of something. |
render | How do you want to render your data? |
pageSize | How many rows in one page? Defaults to 15. |
Develop
npm run dev
cd examples/basic/ && npm install && npm run start
- Go to http://localhost:1234/
- Make changes to /src/index.js
- ???
- Profit! 😎✌️