Diffing in React

As a react-developer, you must come across the topic DIFFING.
I read few articles and understood the basics of them. And out of nowhere, I thought of sharing my knowledge in a simpler way or maybe in a non-technical way. ??

Think for a moment, Whatsa…


This content originally appeared on DEV Community and was authored by Asish Raz

As a react-developer, you must come across the topic DIFFING.
I read few articles and understood the basics of them. And out of nowhere, I thought of sharing my knowledge in a simpler way or maybe in a non-technical way. ??

Think for a moment, Whatsapp as a VIRTUAL DOM
Let suppose, JSX element have their own Whatsapp Group(group name is Virtual DOM Object)
Now, there is a member of this group, who wants to update itself and not the rest.

Now the admin of this group: REACT thought of making a new group very similar to the existing one(which means, the new list of objects).

Obviously, this group will also exist in Whatsapp only (that means, VIRTUAL DOM)

In both the groups, REACT is the only admin.
And REACT observe both the groups from the top-level and wanted to see, which member of the existing group has been changed(that means, which of the VIRTUAL DOM Object has been changed)
And it found out the member.

So, this process of finding out or the comparison (in React language) is called DIFFING.

That's it.

Thank you for taking out your time and reading it. I tried for the first time, writing some tech article like this. Let me know, your thoughts on it.
Any appreciation, criticism are welcome. ?


This content originally appeared on DEV Community and was authored by Asish Raz


Print Share Comment Cite Upload Translate Updates
APA

Asish Raz | Sciencx (2021-04-08T06:22:11+00:00) Diffing in React. Retrieved from https://www.scien.cx/2021/04/08/diffing-in-react/

MLA
" » Diffing in React." Asish Raz | Sciencx - Thursday April 8, 2021, https://www.scien.cx/2021/04/08/diffing-in-react/
HARVARD
Asish Raz | Sciencx Thursday April 8, 2021 » Diffing in React., viewed ,<https://www.scien.cx/2021/04/08/diffing-in-react/>
VANCOUVER
Asish Raz | Sciencx - » Diffing in React. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/04/08/diffing-in-react/
CHICAGO
" » Diffing in React." Asish Raz | Sciencx - Accessed . https://www.scien.cx/2021/04/08/diffing-in-react/
IEEE
" » Diffing in React." Asish Raz | Sciencx [Online]. Available: https://www.scien.cx/2021/04/08/diffing-in-react/. [Accessed: ]
rf:citation
» Diffing in React | Asish Raz | Sciencx | https://www.scien.cx/2021/04/08/diffing-in-react/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.