DEV Community

Discussion on: Why Virtual DOM?

Collapse
 
icecoffee profile image
Atulit Anand • Edited

Defination of virtual DOM that I follow:
Its memory representation of real DOM.

Why virtual DOM is faster?
Ever heard of movie Inception . That movie is all about how we can spend decades in a dream that's relatively super small i.e. the brain works faster that reality. Likewise DOM is the reality and Virtual DOM as name suggests is memory.
You'll getit once you've seen the movie.

Collapse
 
aidenybai profile image
Aiden Bai • Edited

I'm unsure what this means but if that analogy helps you understand the Virtual DOM, the more power to you.

Collapse
 
icecoffee profile image
Atulit Anand

Just helps me visualise better but that's just me.