DEV Community

Discussion on: Building a Simple Virtual DOM from Scratch

Collapse
 
innocentperos profile image
innocentperos • Edited

thank you very much for such a simplified explanation and elegant code. I have been wanting to understand how vuejs virtual dom works.

Then i recreated your idea i was mind blown by the patch($node) function i was first confuse by how this functions know exactly which element to update on the actual DOM, until i when through the zip function over and over before i understood it.

I have currently implemented it in typescript added reactiveness, event listener.

Once again thank you some much, its individuals like you that make coding magical yet understandable 🤩

Collapse
 
ycmjason profile image
YCM Jason

Thank you for your kind words. ❤️