Sometimes we need a little bit more than just a virtual scroll. For instance, if we have elements without static height.
Made with create-react-library
npm install --save react-virtual-scroll-auto
import React from 'react'
import { VirtualScroll } from 'react-virtual-scroll-auto'
class Example extends Component {
render() {
return <VirtualScroll
items={items} /* array of children */
itemCount={items.length} /* quantity of children */
rowHeight={50} /* row basic height */
containerHeight={200} /* container height */
/>
}
}
https://mikhe.github.io/react-virtual-scroll-auto/
MIT © Mikhe