react-infinite-scroll-component
当请求数据量过大时,接口返回数据时间会很长,数据回显时间长,Dom 的渲染会有很大的性能压力。
antd的List
组件中有提到一个滚动加载的组件库react-infinite-scroll-component
实现滚动加载
Antd:https://ant.design/components/list-cn/
github:https://github.com/ankeetmaini/react-infinite-scroll-component
npm:https://www.npmjs.com/package/react-infinite-scroll-component