React Virtuoso-它如何在幕后工作

发布于 2025-01-19 17:06:22 字数 106 浏览 4 评论 0原文

每个人。我正在研究React-Virtuoso。这是一个新的存储库,用于有效地渲染大型组件列表。 这很新。我对它的工作方式感到困惑。为什么反应词可以克服反应虚拟化的问题?

非常感谢3。

Everyone. I'm researching about react-virtuoso. It's a new repository for efficiently rendering large component list.
It's pretty new. I'm getting of stuck about how it works. Why react virtuoso can overcome problems of react-virtualized?

Thanks a lot <3.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

秉烛思 2025-01-26 17:06:22

在这里反应大师作者。

  • 该项目自 2019 年推出以来,NPM 下载量已超过 600 万次。我不认为它是新的,但它比react-virtualized和react-window更新。

  • 它经过专门设计,通过使用优化的数据结构来克服可变项目大小的挑战。

如果您有兴趣了解其实现,您可以熟悉其内部状态管理范例, urx 。从那里开始,您可以阅读源代码 - 有几个核心功能负责调整大小和滚动处理。

希望这有帮助。

React virtuoso author here.

  • The project has been around since 2019 and has 6M+ NPM downloads. I would not consider it new, but it is newer than react-virtualized and react-window.

  • It has been specifically designed to overcome the challenges of variable item sizes by using optimized data structures.

If you're interested into understanding its implementation, you can get acquainted with its internal state management paradigm, urx. From there on, you can read the source code - there are several core features that take care of the sizing and scroll handling.

Hope this helps.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文