top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

What is virtual DOM in React.Js? What is the use ?

0 votes
What is virtual DOM in React.Js? What is the use ?
posted Jan 15 by anonymous

Share this question
Facebook Share Button Twitter Share Button Google+ Share Button LinkedIn Share Button Multiple Social Share Button

1 Answer

0 votes
  • ReactJS does not update the Real DOM directly but it updates the Virtual DOM.
  • Virtual DOM is an in-memory representation of Real DOM. It is a lightweight JavaScript object which is a copy of Real DOM.
  • ReactJS maintains two virtual DOM, one with the updated state Virtual DOM and other with the previous state Virtual DOM. And, It mainly uses for increasing the rendering DOM speed.
answer Jan 21 by Aarati Mahajan
Similar Questions
Contact Us
+91 9880187415
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Karnataka INDIA.