React Recycled Scrolling 通过仅使用固定数量的 DOM 元素来模拟正常滚动,使用 React Hooks 安装大型项目列表安装 npm install --save react-recycled-scrolling 用法所有需要的是 attrList:项目列表 itemFn:React 函数组件甚至只是一个为每个元素返回 jsx 的函数 const numberList = [] for (let i = 1; i <= 20000; i++) numberList.push(i) const SheepRow = (no) => (