What is the difference between real dom and virtual dom.



What is the difference between real dom and virtual dom...

Answer / Devesh Kumar Gupta

In React.js, Real DOM refers to the actual Document Object Model that represents the HTML in a web browser. Virtual DOM, on the other hand, is an abstraction of the Real DOM built by React. The main advantage of using Virtual DOM is that it increases efficiency by minimizing the direct manipulation of the Real DOM and only updating the parts of the DOM that actually need to change.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More React.js Interview Questions

List some advantages of reactjs?

1 Answers  


Which feature can we use to cause a component to render only when its id changes?

1 Answers  


What are reacted portals?

1 Answers  


List down the components of redux?

1 Answers  


Why do we need a router in react?

1 Answers  


What is the difference between various react component lifecycle methods?

1 Answers  


Explain about the standard javascript toolchain, transpilation, jsx?

1 Answers  


How can we find the version of react at runtime in the browser?

1 Answers  


How can you embed two or more components into one?

1 Answers  


How to set state with a dynamic key name?

1 Answers  


What do you understand by virtual dom? Explain its working.

1 Answers  


List some features of reactjs?

1 Answers  


Categories