paint-brush
Virtual DOM, Reconciliation And Diffing Algorithm Explained Simplyby@kishansheth
11,505 reads
11,505 reads

Virtual DOM, Reconciliation And Diffing Algorithm Explained Simply

by Kishan Sheth5mMay 8th, 2021
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow
EN

Too Long; Didn't Read

Virtual DOM is just a copy of the original DOM kept in the memory and synced with the real DOM by libraries such as ReactDOM. Virtual DOM has the same properties that of the Real DOM, but it lacks the power to directly change the content of the screen. The algorithm that is used for the diffing process is called as the Diffing algorithm. When the children of the components have a key attribute, React uses the keys to match children in the pre-updated virtual DOM.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Virtual DOM, Reconciliation And Diffing Algorithm Explained Simply
Kishan Sheth HackerNoon profile picture
Kishan Sheth

Kishan Sheth

@kishansheth

I am a kind of guy who likes programming at its core; excellent communication as well as leadership skills.

Learn More
LEARN MORE ABOUT @KISHANSHETH'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Kishan Sheth HackerNoon profile picture
Kishan Sheth@kishansheth
I am a kind of guy who likes programming at its core; excellent communication as well as leadership skills.

TOPICS

Languages

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite