This is a simple showcase of performant infinite-scroll experience using react-virtualized. This example handles infinite-scroll based on window scroll position, which gives us the ability to create "newsfeed-like" infinite-scroll layouts. In this example, as the user scrolls, we fetch data about trending repositories from the GitHub API.
https://codesandbox.io/s/react-virtualized-infinite-scroll-demo-ngexu
Check out the amazing libraries used in this example!
- react-virtualized - AutoSizer, InfiniteLoader, List, WindowScroller
- axios
- git clone
- cd react-virtualized-infinite-scroll-demo
- npm i
- npm start
- open http://localhost:3000/