Virtual DOM, Reconciliation And Diffing Algorithm Explained Simplyby@kishansheth
11,006 reads

Virtual DOM, Reconciliation And Diffing Algorithm Explained Simply

tldt arrow
EN
Read on Terminal Reader
Read this story w/o Javascript

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

@kishansheth

Kishan Sheth

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


Receive Stories from @kishansheth

react to story with heart
Kishan Sheth HackerNoon profile picture
by Kishan Sheth @kishansheth.I am a kind of guy who likes programming at its core; excellent communication as well as leadership skills.
Read My Stories

RELATED STORIES

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