What is the difference between dom and virtual dom in reactjs?
Answer / Madhumita Lalwani
{"DOM": "The Document Object Model (DOM) is a programming interface for HTML and XML documents. In React, when a component's state changes, the entire tree of components is re-rendered, causing the browser to update the DOM.nnExample: The browser updates the HTML by replacing the contents of <div id="root"> with a new version.",n"Virtual DOM": "The Virtual DOM is a lightweight JavaScript representation of the real DOM. React creates a virtual DOM and compares it with the previous one to determine the minimal set of changes needed to update the actual DOM. This results in faster rendering and better performance."
| Is This Answer Correct ? | 0 Yes | 0 No |
What are the methods called when component is created or while inserting it to dom?
What do you understand by mixin or higher order components in reactjs?
When reactjs released?
What are the popular libraries used for flux?
What is function based component?
What do you understand with the term polling?
Explain life cycle of react js component?
What are the lifecycle steps of React?
What is React.createClass?
What is the second argument that can optionally be passed to setState and what is its purpose?
Explain flux?
How to use https instead of http in create-react-app?