Description
ReactList is a React component for infinite scrolling lists. You give it a number of items and a function that renders the item at each index, and it renders only the items that are visible while the rest of the list scrolls past. It works on the vertical and horizontal axes, and it supports lists whose items are all the same size as well as lists whose items vary in size. For variable sizes you can provide a size getter when the sizes are known, or a size estimator when they are not. You can scroll to an index after mounting, render some items up front for server-side rendering, and batch new renders in pages of a set size. The component finds the nearest scrollable parent by default, and you can point it at a different scroll container when the layout needs it. The project includes an example page with several configurations and an example source. ReactList depends on React and is published as open source on GitHub. Its README lists each prop, including the item renderer, the items renderer, the length and the scroll parent getters, so you can check the exact behaviour before you use it.…
Highlights
- Infinite scroll that renders only visible items
- Vertical and horizontal lists
- Uniform and variable item sizes
- Scroll to an index after mounting
- Server-side rendering with minimum items
Ratings & Reviews
No ratings yet
Be the first to rate react-list.
People also visit
react-list FAQ
What is ReactList?
A versatile infinite scroll component for React that renders only the items currently in view.
Is it free?
It is an open-source project on GitHub. The README does not describe a paid version.
Does it need React?
Yes. ReactList depends on React.
Can it scroll horizontally?
Yes. The axis prop sets whether the list scrolls on y, the default, or x.
How does it handle items of different sizes?
With variable lists you can pass itemSizeGetter when sizes are known, or itemSizeEstimator when they are not.
Can it render on the server?
Yes. The minSize prop sets how many items render initially, which helps with server-rendered HTML.
How do I see examples?
The project has an example page with several configurations, and the source of that page is linked from the README.
What are the best react-list alternatives?
Popular alternatives to react-list include react-infinite, react-infinite-scroll-component and react-window. See all react-list alternatives
















