top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

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

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

Share this question
Facebook Share Button Twitter Share Button LinkedIn 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, 2019 by Aarati Mahajan
...