Комментарии:
thank you
ОтветитьBut both real Dom and virtual Dom has to be constructed by browser only, I mean react must be executed by browser only
So isn't it double work?
Best explanation ❤
Ответитьnice way of explanation via story
ОтветитьVery confusing analogy. I'm assuming by View you're referring to JSX and by Model you're referring to State. Seems like a beginner would take from this analogy that the view and model are something outside of React.
ОтветитьI fail to see why do I need to know this besides using it for fcking interview questions
Ответитьslept like a baby
ОтветитьOMG! I'm the view
ОтветитьCan someone Correct me?
So...here the use of react is that the view doesn't need to track down the changes and those will be taken care by react.
here again view PAINTS THE WHOLE THING which actually takes time and give to react and react spots d difference and updates????
😳
ОтветитьThis was an absolute waist of time...
ОтветитьI don't think this analogy is right. A beginner watching this would question "Is that really help? What is the difference?".
I think the following analogy is better -
We have React robot - it will repaint the entire virtual picture (virtual DOM) on every new update, because it is a machine, it would do it quickly easily. Then it compare the new picture to the old one in the memory to see the different. Then the robot give the different only to the human - who paint the real picture which cost more effort than the virtual picture. If the robot find nothing different then it give human nothing, so he saved time to not repaint anything the same.
This is awesome , could you please make a whole playlist for react major concepts .
ОтветитьThis analogy is great.
Ответитьhi there , how did you make the animations ? which software did you use .looks neat.
ОтветитьHello from Odin Project React => Scrimba React => Here
ОтветитьThank you :D
ОтветитьI really love this video! At first I thought I was watching at 0.75x speed. Great work.
ОтветитьSo basically Facebook created React to scan every piece of data in your application.
Ответитьfcc react bought here
Ответитьyou react diff algo ,i love you!
ОтветитьMy favourite fairy tale ever😄
The Brothers Grimm would approve of this story
it reminds me of the Headspace
Ответитьits a bed time
ОтветитьWhat a fun way to learn lol
Ответитьalthough educational. THis whole thing is very creepy
ОтветитьThe narrator sounded drunk and i had to check if my playback speed was set to slower than normal 😂
ОтветитьSimple video. Too bad I didn't understand it.
ОтветитьI am an absolute beginner in React and after watching this video I think this video is sh**t it doesn't give you appropriate insights.
Ответитьthis tickled my memory banks
ОтветитьSo in short the usual DOM renders everything everytime.... but the virtual one only rendered the changes it notices.
ОтветитьWow... Made it a breeze to understand the concept. Thanks 👍
Ответитьthese are the future short novels
Ответить🔥🔥🔥
ОтветитьThis almost seems like more work. It’s pretty incredible that it is faster and more efficient to constantly “repaint” the DOM and then pass that DOM into a “robot” that checks for updates and updates the DOM. One would think it would just be better to do one task once rather than twice.
ОтветитьWhat
Ответитьnice way, but it's explaining a expert in layman's terms.
ОтветитьThis actually is kinda cute!! 😂
Ответитьthanks, It really helped me to understand the difference
Ответитьthank you for this, helpful. lol
Ответитьso i'm guessing the "painting" part is expensive, which is why the robot is so useful?
ОтветитьSlow and Steady gives you Knowledge.
ОтветитьThis is funny 😂
ОтветитьA very decent explanation.
Ответитьawesomely explained ! .
Thanks
2x
ОтветитьLoved the way of how this concept has been explained, such that even a 9-year-old can understand this.
ОтветитьI don't think this analogy is right. A beginner watching this would question "Why doesn't that man directly repaint the entire Real DOM?". I think the following analogy is better -
Instead of keeping track of so many changes, the man decides that he would simply repaint the entire picture on the DOM.
But painting on the DOM was a lengthy process.
So he decides to buy a Virtual DOM and a React Robot.
Now he just repaints the entire picture on the Virtual DOM. This does not take much time because painting on the Virtual DOM is much faster than painting on the Real DOM.
Then he passes the Virtual DOM to the React robot. The React robot finds out the the specific changes needed to be done on the Real DOM and then it does them.