Really good, I honestly don't know why this has so low number of views, it's the best one I found to introduce me to React. Thank you sir for taking your time to explain so patiently and detailed how the DOM is changed and how React changed the rendering "game".
Of all the videos that I’ve watched on react this is by far the most clear explanation of what react does behind the scenes. It’s also backed up with a very simple example that demonstrates the power of react.
Wow, that was such an awesome video. I have been learning react from a few months now and always see people directly jumping to the codes without assisting with things like DOM manipulation, Virtual DOM to name a few. Thank you so much for this fruitful video. Please go ahead and make more informative content on complex topics like this.
Thanks a lot i have bought two udemy course to learn react but none has explained like you. finally i have understood .Thank you so much. I wish you could make some tutorial on Udemy.
I’m sorry but I’m a little confused. The painting of the ui is slow part right? So if the real dom receives changes at say node 4 from the virtual dom, does it not paint node 1, 2, 3 and 4 again? I guess my confusion is when you make a change in regular JavaScript to only node 4, how is that any different if the real dom is painting node 1,2,3 and 4 again. Perhaps I’m not understanding how the painting of the ui is done by the real dom
Hello, the beauty of react is it doesn't render the entire element but part of it. So if you have 4 employee in a list of employees and one of the employees status got updated, react in going to render that employee node only. You can achieve the same using JS also but it would be really cumbersome. I will be working on videos where I will compare the React projects with vanilla JS projects. Please be with me till that time :)
Nice explanation Sir. One question. I read some articles, saying that Plain JavaScript re-renders the entire DOM, while react renders the changed part. But here, plain js also refreshes the minimum part only. Can anyone explain on this please.
The advantage to react is that you don't need to write code to guarantee that the minimum change is made. Instead, the Dom is compared with the virtual Dom to do that work for you.
IMO this is a very common mis conception regarding react that it only re renders what is changed and not the whole DOM. Since React is a library built on top of JS it does not have any additional superpower but it can work smartly. In JS it is really easy and high performant to manipulate Objects when compared to DOM trees, React actually keeps the copy of dom in VDOM and manipulate that over the time very very quickly since it is very high performant to update objects and just map those changes and does its own batching.
Are you saying the analogy used in this video is not very accurate? If so, please kindly explain better or link to another video or blog that gives a more accurate information. Thank you
I understand your concern that's why youtube has speed feature. I have to speak slowly so that everyone can understand. These videos are made keeping everyone in mind. Thanks for the feedback.
Hi Dipesh, we can say rendering is similar to drawing on a blank sheet of paper. So basically react is drawing into the Dom. But it doesn't sound good to say drawing. Hence this word render has been used. Btw great question I would look more into this and come back with small video possibly.
Really good, I honestly don't know why this has so low number of views, it's the best one I found to introduce me to React. Thank you sir for taking your time to explain so patiently and detailed how the DOM is changed and how React changed the rendering "game".
Thanks
Of all the videos that I’ve watched on react this is by far the most clear explanation of what react does behind the scenes. It’s also backed up with a very simple example that demonstrates the power of react.
Thanks
I agree
This video is the definition of Crystal Clear!
Thanks 🙏
This is the best explanation about React on RUclips.
Thanks. Glad you liked it.
The best explanation of "React Virtual DOM" I have ever seen. Simple , Clean & Precise. Thanks a lot !!
Thanks
Thank you for taking the time to do this! As others said, one of the most clear explained videos! Keep it up!
Thanks
one of the best explaination on DOM thanks sir please keep it up
Thanks
I have been roaming around the internet for days and finally found the FABULOUS explanation of Virtual DOM. Thanks
Thanks
Best way of explanation...thank you very much Sandip.
Glad u liked it. Thanks.
I wish you could create more tutorials about React, and I agree with the rest of this dude you really did a good job here! Thank you!
Yup, working on it.
the 7 dislikes are from the ones who don't know react.
Great video man I learnt something new today.
Thanks
The Easiest example and explanation I have ever seen!!
Thanks
Excellent! Very informative using simple terms and with clear explanations. Thanks for the video.
Thanks. I m glad you liked it.
woww... what a simple yet powerful way to explain react working. Amazing work. This video should get millions of views. Thank you so much !!
Glad you liked it!
Okay nice explanation with detailed example..keeping creating more like this ..thank you ❤
one of the best video found to understand the react. Thankyou !
Thanks
Offf....Sooo...finally I got to know how React works. Thanks a lot, Brother!
Thanks
Exactly what I was looking for. Best explanation ever with live example.
Glad it helped. Thanks.
Best video I have seen for What is React, very clear explanation.
Glad it was helpful!
I am a big fan of you now and I am watching every single video of your channel 🙏🙏
As always this video was clear and concise and very useful 👍
Thanks
REALLY SO BRILLIANT AND SOOOOO INFORMATIVE
Thanks
i learn only by doing. I have now understood the Virtual DOM . omg how good this explanation is just wow.
Thanks
Wow, that was such an awesome video. I have been learning react from a few months now and always see people directly jumping to the codes without assisting with things like DOM manipulation, Virtual DOM to name a few. Thank you so much for this fruitful video. Please go ahead and make more informative content on complex topics like this.
Thanks. Glad you liked it. I m on it.
How nice demonstration it is!! This is pretty much helpful to understand React. Thank you so much Sandip.
Thanks.
wow, Amazing explanation sir, now i got how react works..
Glad it helped
Bestest explanation on RUclips
Glad you think so!
Perfect example on how virtual dom works , really informative ..
Thanks sir
Thanks
Thank you, your explanations were very clear.
Thanks
Nice video! Thank you for the thorough explanation.
Very well explanation. One small question, where this Virtual DOM data store as it keeps current and Prev state for compare it.
I think it should be in memory which browsers environment
Best React "what-is" video I have found. God bless you, Sir!
Thanks
It's really great... Thank you for your effort. I wish you to create more useful videos...
Thanks
Thanks for wonderful explanation of React! Very nice video!
Thanks
Excellent explanation. Thank you for making it easy to understand.
Thanks
Excellent! Clear and to the point! Thank you!!!
Thanks
The clearest explanation!!!!!
Thanks
Awesome video, you really explain Virtual Dom crytical clear.
Glad it was helpful!
Thank you brother for such a good explanation!
Thanks 🙏
A million thanks for this explanation
Glad it was helpful!
the BEST one in terms of explaining how React works! look 8:20, it's a moment of "I got"!!
Glad it helped.
crystal clear explanation !! thanx
Thanks
Very clear explanation. Thanks
Thanks
Really helpful and interactive thank you
Thanks
TBH great work simple yet clean
Thank you ❤
Glad you like it!
want this code to watch and play with it, I know it's not possible now. But,I must say you are very amazing explainer.Thank You
Thanks
Thanks a lot i have bought two udemy course to learn react but none has explained like you. finally i have understood .Thank you so much. I wish you could make some tutorial on Udemy.
Glad you liked it. Thanks.
its really good. thanks a lot giving this.
Glad you like it!
Very well explained. Thanks.
Thanks 🙏
wow the most easy explained video on entire youtube!1!
Thanks
wow what a beautiful way of explanation.
Thanks
Really great explanation. Thanks
Thanks
So neat and clean explanation ❤️👍🏻
Thanks
It's beautifully explained, Thank you.
Thanks
Great video! thanks
Thanks
showing the DOM updates is very clever.
Thanks
Amazing video!!!!
Thanks
Nice explanation about virtual DOM
Thanks 🙏
I’m sorry but I’m a little confused. The painting of the ui is slow part right? So if the real dom receives changes at say node 4 from the virtual dom, does it not paint node 1, 2, 3 and 4 again? I guess my confusion is when you make a change in regular JavaScript to only node 4, how is that any different if the real dom is painting node 1,2,3 and 4 again. Perhaps I’m not understanding how the painting of the ui is done by the real dom
Hello, the beauty of react is it doesn't render the entire element but part of it. So if you have 4 employee in a list of employees and one of the employees status got updated, react in going to render that employee node only. You can achieve the same using JS also but it would be really cumbersome. I will be working on videos where I will compare the React projects with vanilla JS projects. Please be with me till that time :)
Oh man where are you ,love your way of explaning thought it there would be react js videos but no videos.You should have made it.
Thanks
Amazing 👏..
Keep doing videos on Web Development.
Thanks
GOD BLESS YOU!
Thanks
The best explanation ever
Thanks
Really Awesome Video 🤩🤩🤩
Thanks
Great explanation. Thank You :)
Thanks
Love from Bangladesh
thx, very nice demonstration
Glad you liked it. Thanks.
Just amazing
Thanks
Please make a complete video, how single page applications works under the hood.!
Well explained dud 👍, thank you so much 🙏
Thanks. I m glad you liked it.
Couldn't find your course on pluralsight
Please provide link
I got selected for pluralsight but getting a new course approved is really tough. You need to create unique content to get into pluralsight.
@@codewithsandip the way it was explained is very good, please keep making videos
Thanks 😀
Beautiful explanation
thanks
Nice explanation Sir. One question. I read some articles, saying that Plain JavaScript re-renders the entire DOM, while react renders the changed part. But here, plain js also refreshes the minimum part only. Can anyone explain on this please.
I will come up with one video showing the example.
The advantage to react is that you don't need to write code to guarantee that the minimum change is made. Instead, the Dom is compared with the virtual Dom to do that work for you.
Great Example 👍
Thanks! 😃
Nice explaination!
Thanks
Superb explanation
Thanks
clock example was very helpful.
Glad it was helpful!
Very good explanation
Glad you liked it. Thanks.
thanks sandip
Most welcome 🙏
very nice explaination
Thanks
It's more obvious for me know. Thank you so much buddy for the video.
Thanks
Good explanation.
Thanks
IMO this is a very common mis conception regarding react that it only re renders what is changed and not the whole DOM. Since React is a library built on top of JS it does not have any additional superpower but it can work smartly.
In JS it is really easy and high performant to manipulate Objects when compared to DOM trees, React actually keeps the copy of dom in VDOM and manipulate that over the time very very quickly since it is very high performant to update objects and just map those changes and does its own batching.
Are you saying the analogy used in this video is not very accurate? If so, please kindly explain better or link to another video or blog that gives a more accurate information. Thank you
Amzing
Thanks 🙏
best Video
Thanks 🙏
Thank you!
You're welcome!
wow, this is like finding a gem of a video. good work. but please speak a bit fast. I have to watch you like on 1.5 video speed.
I understand your concern that's why youtube has speed feature. I have to speak slowly so that everyone can understand. These videos are made keeping everyone in mind. Thanks for the feedback.
grt work
Thanks
I had a doubt that why the browser itself cannot implement the diffing algorithm
Awesome
Thanks
+1 Great video!
Thanks
Thank you man!
Thanks
Nice explanation 😊
Thanks 🙏
Great
Thanks
Good one.
Thanks
perfect
Thanks
Everybody keep saying render , render but what is rendering ?
Please explain sir what is rendering in simple terms and whether print statement in normal coding language same as this rendering?
Hi Dipesh, we can say rendering is similar to drawing on a blank sheet of paper. So basically react is drawing into the Dom. But it doesn't sound good to say drawing. Hence this word render has been used. Btw great question I would look more into this and come back with small video possibly.
@@codewithsandip thank a lot sir
Which country you from pal?
India
🥇🏆🏆🥇
Sir can you provide source code of js and react clock
My Apology. Un fortunately I don't have source code for this one now. This was i have written online just for a demo.
thank you sir
Your welcome.