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

Virtual DOM, Reconciliation And Diffing Algorithm Explained Simply

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

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.
featured image - Virtual DOM, Reconciliation And Diffing Algorithm Explained Simply
Kishan Sheth HackerNoon profile picture
Kishan Sheth

Kishan Sheth

@kishansheth

L O A D I N G
. . . comments & more!

About Author

Kishan Sheth HackerNoon profile picture
Kishan Sheth@kishansheth

TOPICS

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