What is the diffing algorithm in React?
What is the diffing algorithm in React?
题目类型: 技术面试题
这是一道技术面试题,常见于澳洲IT公司面试中。
难度: hard
分类: reconciliation
标签: virtual dom, diffing
参考答案摘要
TL;DR The diffing algorithm compares two Virtual DOM trees to compute the minimum set of updates needed to update the UI. Explanation React uses an O(n) heuristic algorithm instead of a costly O(n³) t...
本题提供 STAR 原则详细解答和技术解析,登录匠人学院学习中心即可查看完整答案。