I
I
IsaNesquik2018-02-15 09:05:58
JavaScript
IsaNesquik, 2018-02-15 09:05:58

What is the difference between virtual dom and dom?

When reading about the Virtual DOM, in all the materials they write that thanks to vdom, as a result, only those nodes that have changed are redrawn in the real dom.
But without the vdom, wouldn't the regular dom only redraw the nodes that I changed?
Example: there are two containers (neighbors to each other), if I add divs to one container, will redrawing occur in the neighboring container?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
longclaps, 2018-02-15
@IsaNesquik

The point is not that, but that if you delete and immediately insert , this trivial replacement is cut off at the vdom level. This buffering allows you to draw each version of the page from scratch, and rendering occurs incrementally. <p>блабла</p><p>блабла</p>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question