Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
它说它使用原生 DOM 进行智能差异渲染,而不是像 React 中的自定义实现。
但这怎么可能?浏览器现在支持智能差异渲染吗?
Preact 实现了类似 React 的自定义 diff 算法,它只是将虚拟 DOM 元素与现有 DOM 元素进行比较。
这是两个库之间差异的直观表示: