Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
What is the difference between Real DOM and Virtual DOM?
Home
ReactJS
What is the difference between Real DOM and Virtual DOM?
0
votes
asked
Nov 5, 2023
in
ReactJS
by
AdilsonLima
What is the difference between Real DOM and Virtual DOM?
reactjs-interview-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Nov 5, 2023
by
AdilsonLima
Below are the main differences between Real DOM and Virtual DOM,
Real DOM
Virtual DOM
Updates are slow
Updates are fast
DOM manipulation is very expensive.
DOM manipulation is very easy
You can update HTML directly.
You Can’t directly update HTML
It causes too much of memory wastage
There is no memory wastage
Creates a new DOM if element updates
It updates the JSX if element update
...