What is the difference between shadow dom and virtual dom?
Answer / Arun Kumar Gaur
Shadow DOM is a web standard that allows encapsulation of HTML, CSS, and JavaScript styles within custom elements, preventing them from affecting other parts of the document. Virtual DOM, on the other hand, is a programming concept used by React and other libraries to improve performance by rendering only the changed parts of the UI when the state or props change. While Shadow DOM deals with encapsulation and isolation, Virtual DOM deals with efficiently updating the UI.
| Is This Answer Correct ? | 0 Yes | 0 No |
How events are different in react?
What is the difference between super() and super(props)?
What are controlled components?
Can you explain about the standard javascript toolchain, transpilation, jsx?
Define the term Redux in React
Explain the meaning of Mounting and Demounting
Give an example of using events?
What are the popular libraries used for flux?
How to enable production mode in react?
What is react js good for?
How to update the state of the component in reactjs?
What are the lifecycle methods going to be deprecated in react v16?