2 ms·
How often is diff done against the DOM? My understanding is that it’s done against last valid vDOM instead.
by keymone 7y ago
How often is diff done against the DOM? My understanding is that it’s done against last valid vDOM instead.
- spankalee 7y agoSorry, you're correct for React, and for most VDOMs, though some do diff against the DOM. The point is that the diff isn't sped up by using immutable data. The app data is only used to generate the vdom tree, and the diff is after that.