盒子
盒子
文章目录
  1. React Fiber是什么

浅谈React Fiber

React Fiber是什么

先贴一下GIthub的文档:

React Fiber is an ongoing reimplementation of React’s core algorithm. It is the culmination of over two years of research by the React team.

The goal of React Fiber is to increase its suitability for areas like animation, layout, and gestures. Its headline feature is incremental rendering: the ability to split rendering work into chunks and spread it out over multiple frames.

Other key features include the ability to pause, abort, or reuse work as new updates come in; the ability to assign priority to different types of updates; and new concurrency primitives.

Fiber是一次对核心算法的重新实现,主要特性是增量式渲染,另外的关键特性包括更新时暂停、中断、重启工作,为不同类型的资源分配优先级,新的并发原语。

欢迎关注公众号
扫码关注我的微信公众号-大前端合集
  • 微信公众号-大前端合集