3 ms·
No, the virtual DOM and the Shadow DOM are distinct concepts. The virtual DOM is a parallel representation of the DOM which is used to diff against—it's only u
by morgante 11y ago
No, the virtual DOM and the Shadow DOM are distinct concepts.
The virtual DOM is a parallel representation of the DOM which is used to diff against—it's only used for "logic" rather than display.
The Shadow DOM is actually almost the opposite: it replaces the visual/interactive presentation of the tree without changing the exposure of the underlying elements to the rest of the page.
That being said, they bother offer mechanisms for writing modularized frontend code effectively.