0.0.1 • Published 7 years ago
react-list-infinite v0.0.1
react-list-infinite
使用
import List from "react-list-infinite";
<List
renderItem={(i, key) => {
return <li key={key}>{i}</li>
}}
length={1000}
/>
- renderItem - 每行渲染内容
- length
- 当前渲染数据数组长度
### Preact版本
```javascript
import List from 'react-list-infinite/pindex';