Infinite scrolling with React JS

后端 未结 3 1688
遥遥无期
遥遥无期 2020-11-29 16:07

I am looking at ways to implement infinite scrolling with React. I have come across react-infinite-scroll and found it inefficient as it just adds nodes to the DOM and doesn

3条回答
  •  独厮守ぢ
    2020-11-29 16:18

    Check out our React Infinite Library:

    https://github.com/seatgeek/react-infinite

    Update December 2016

    I've actually been using react-virtualized in a lot of my projects recently and find that it covers the majority of use cases a lot better. Both libraries are good, it depends on exactly what you're looking for. For instance, react-virtualized supports variable height JIT measuring via an HOC called CellMeasurer, example here https://bvaughn.github.io/react-virtualized/#/components/CellMeasurer.

    Update November 2018

    A lot of the lessons from react-virtualized have been ported to the smaller, faster, more efficient react-window library from the same author.

提交回复
热议问题