Internal Process of Virtual Dom

Aman jain
Nov 26, 2023

Virtual DOM ka funda samajhne ke liye pehle real DOM ke baare mein thoda sa bata doon. Real DOM woh actual HTML elements hote hain jo browser mein dikhte hain, jaise ki heading tag, paragraph tag, ya koi bhi HTML tags.

Virtual DOM basically real DOM ki copy hai . Jab hum koi change karte hain apne webpage mein, jaise ki koi text update ya element remove karna ho, toh sabse pehle woh change Virtual DOM mein hota hai, Real DOM mein nahi. Yeh Virtual DOM kaafi fast hota hai as compared to Real DOM, because it’s just a copy, not the actual thing that the user sees.

For more info :

https://reactdudejs.blogspot.com/2023/11/virtual-dom-kaise-kaam-krta-hai.html

--

--