Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[react] 说说你对windowing的了解 #935

Open
haizhilin2013 opened this issue Jul 18, 2019 · 3 comments
Open

[react] 说说你对windowing的了解 #935

haizhilin2013 opened this issue Jul 18, 2019 · 3 comments
Labels
react react

Comments

@haizhilin2013
Copy link
Collaborator

[react] 说说你对windowing的了解

@haizhilin2013 haizhilin2013 added the react react label Jul 18, 2019
@jiangbo2015
Copy link

展示长列表
如果你的应用会渲染大量的列表数据,我们建议使用一种称为‘windowing’的技术,这种技术下在任何给定的时间内只会渲染一小部分数据列表,并可以减少列表项的重复渲染(即再次渲染已经渲染过的数据)。

react-window和react-virtualized都是流行的使用windowing技术的库,他们都提供了一系列可重用的组件,这些组件能够帮助你以最好的性能展示列表以及表格数据

@liuruomu
Copy link

@hanjiangxueying
Copy link

‘windowing’的技术把大数据集分解为多个块,当它们滚动到视图中时可以即时加载。它也可以用于创建无限加载列表
例如:react-virtualized,react-window等都使用了“windowing”的技术
https://react-window.now.sh/#/examples/list/fixed-size
https://bvaughn.github.io/react-virtualized/#/components/List

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
react react
Projects
None yet
Development

No branches or pull requests

4 participants