0 votes
in ReactJS by
What is the virtual DOM?

1 Answer

0 votes
by
DOM stands for Document Object Model. The DOM represents an HTML document with a logical tree structure. Each branch of the tree ends in a node, and each node contains objects.

virtualdom

React keeps a lightweight representation of the real DOM in the memory, and that is known as the virtual DOM. When the state of an object changes, the virtual DOM changes only that object in the real DOM, rather than updating all the objects. The following are some of the most frequently asked react interview questions.

Related questions

0 votes
asked Nov 5, 2023 in ReactJS by AdilsonLima
0 votes
asked Dec 8, 2020 in ReactJS by SakshiSharma
...