1.

What is the difference between ShadowDOM and VirtualDOM?

Answer»
ShadowDOMVirtualDOM
Shadow DOM creates small pieces of the DOM OBJECT which has its own, isolated scope as they represent.Virtual DOM creates a copy of the whole DOM object
It is a tool that is used in building the apps and websites that are based on components.It is a CONCEPT of DOM which is being used by Vue.js and React.js
It COMES in small pieces and doesn’t represent the whole DOCUMENT Object Model.It's done to improve the performance of the UI libraries


Discussion

No Comment Found