May 2024
Beginner to intermediate
384 pages
9h 29m
English
patchDOM() functionobjectsDiff() function to find the differences in attributes and stylesarraysDiff() function to find the differences between CSS classesarraysDiffSequence() function to find the differences between virtual DOM childrenIn chapter 7, you saw how the reconciliation algorithm works in two phases: finding the differences between two virtual Document Object Model (DOM) trees and patching those differences in the real DOM. You implemented the three key functions to find differences between two objects or two arrays: objectsDiff(), arraysDiff(), and arraysDiffSequence() ...