Hacker News new | ask | show | jobs
by keymone 2585 days ago
How often is diff done against the DOM? My understanding is that it’s done against last valid vDOM instead.
1 comments

Sorry, 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.