DEV Community

hunzombi
hunzombi

Posted on

Vue's Virtual DOM

Vue's Virtual DOM enables you applications to be scaled easily. It enables efficient communication with the DOM. It simplifies UI state management by serving as a predictable intermediary.
The Virtual DOM minimizes direct DOM interactions. The VDOM calculates the difference between UI states before applying them, due to this only parts that need change are updated. The VDOM can also batch chages to prevent performance bottlenecks where if the changes were uploaded in succession as each of the chages can force a reflow or repaint.
The VDOM also optimizes re-rendering by removing lag or stuttering.

I keep learning everyday :)

Top comments (0)