Menu

Post image 1
Post image 2
Post image 3
1 / 3
0

How React Virtual DOM works under the Hood

DEV Community·Bhupesh Chandra Joshi·28 days ago
#GdBGv9mD
Reading 0:00
15s threshold

What problem the Virtual DOM solves? Consider this scenario there are two couple in house. The girlfriend is the real dom , when couple has Chit-chat and when girlfriend experiences the intense anger and she rearranges the complete home , Back in the day the old-school/collage days before May 29, 2013(without Virtual DOM). The girl says shift the bed shift + furniture shift + curtains change + lighting change. You need to repaint the whole room. After 5 min she said to you , keep them right. After the complete demolition of the structure of home, you reset all the home settings. Result you understood the problem - time waste and your girlfriend is still angry. Enter fullscreen mode Exit fullscreen mode Virtual DOM, on a path of self-improvement just rearranges the structure , after creating the mini model virtual dom on your mind. You shift the table , The rest of the setup is identical, except for the repositioned table. You don't touched your home, it's not joke , it is the real problem virtual dom solves.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More