React and the Virtual DOM

React and the Virtual DOM

PurelyFunctional tv

8 лет назад

249,125 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Yubin Jo
Yubin Jo - 12.09.2023 17:19

thank you

Ответить
DOONDI SANAPALA
DOONDI SANAPALA - 10.08.2023 11:19

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?

Ответить
Vansh
Vansh - 01.07.2023 19:36

Best explanation ❤

Ответить
Aisha Batool
Aisha Batool - 19.06.2023 18:51

nice way of explanation via story

Ответить
Maya and Penny's Doggone Life
Maya and Penny's Doggone Life - 27.05.2023 20:44

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.

Ответить
R838
R838 - 20.04.2023 01:26

I fail to see why do I need to know this besides using it for fcking interview questions

Ответить
Alan Liang
Alan Liang - 29.12.2022 06:32

slept like a baby

Ответить
Martin Kariuki
Martin Kariuki - 08.11.2022 10:03

OMG! I'm the view

Ответить
𝚂𝚗𝚜𝚍.𝚂𝚘𝚗𝚎 🇮🇳
𝚂𝚗𝚜𝚍.𝚂𝚘𝚗𝚎 🇮🇳 - 11.06.2022 07:56

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????

Ответить
Hitalo Santos
Hitalo Santos - 23.05.2022 22:40

😳

Ответить
The Mindscape Channel
The Mindscape Channel - 25.01.2022 20:53

This was an absolute waist of time...

Ответить
Kito Kip
Kito Kip - 18.12.2021 13:09

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.

Ответить
vandana sethi
vandana sethi - 29.08.2021 11:56

This is awesome , could you please make a whole playlist for react major concepts .

Ответить
Reyna Oldman
Reyna Oldman - 18.08.2021 11:00

This analogy is great.

Ответить
mrtechmaker
mrtechmaker - 04.08.2021 20:07

hi there , how did you make the animations ? which software did you use .looks neat.

Ответить
Harun Guven
Harun Guven - 03.08.2021 07:32

Hello from Odin Project React => Scrimba React => Here

Ответить
우럭매운탕
우럭매운탕 - 05.07.2021 08:20

Thank you :D

Ответить
murcielago_software
murcielago_software - 04.07.2021 03:48

I really love this video! At first I thought I was watching at 0.75x speed. Great work.

Ответить
Selecta Drizzle
Selecta Drizzle - 27.05.2021 16:17

So basically Facebook created React to scan every piece of data in your application.

Ответить
Nikhil Anand Pandit
Nikhil Anand Pandit - 19.04.2021 10:27

fcc react bought here

Ответить
Aashiq Ahmed
Aashiq Ahmed - 23.03.2021 16:34

you react diff algo ,i love you!

Ответить
Maria Kostiaeva
Maria Kostiaeva - 16.03.2021 14:42

My favourite fairy tale ever😄
The Brothers Grimm would approve of this story

Ответить
Patrick Luan
Patrick Luan - 24.02.2021 15:03

it reminds me of the Headspace

Ответить
Shubham Jaiswal
Shubham Jaiswal - 28.01.2021 18:39

its a bed time

Ответить
Kendrip
Kendrip - 22.01.2021 23:44

What a fun way to learn lol

Ответить
Shuang Li
Shuang Li - 15.01.2021 05:24

although educational. THis whole thing is very creepy

Ответить
FozIrenics
FozIrenics - 31.12.2020 07:52

The narrator sounded drunk and i had to check if my playback speed was set to slower than normal 😂

Ответить
David Nguyen
David Nguyen - 31.12.2020 06:02

Simple video. Too bad I didn't understand it.

Ответить
Juned Khan
Juned Khan - 23.12.2020 19:35

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.

Ответить
liam robertson
liam robertson - 23.12.2020 19:22

this tickled my memory banks

Ответить
Adi Gupta
Adi Gupta - 06.12.2020 00:01

So in short the usual DOM renders everything everytime.... but the virtual one only rendered the changes it notices.

Ответить
Hem M
Hem M - 03.12.2020 02:27

Wow... Made it a breeze to understand the concept. Thanks 👍

Ответить
Aedal Daniel
Aedal Daniel - 20.11.2020 01:28

these are the future short novels

Ответить
Utsav Anand
Utsav Anand - 17.11.2020 05:58

🔥🔥🔥

Ответить
Brett Cooper’s #1 Simp
Brett Cooper’s #1 Simp - 16.10.2020 19:58

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.

Ответить
yaiirable
yaiirable - 03.10.2020 21:45

What

Ответить
Nikhil Kushwaha
Nikhil Kushwaha - 27.09.2020 13:44

nice way, but it's explaining a expert in layman's terms.

Ответить
Stella Koirala
Stella Koirala - 24.09.2020 07:00

This actually is kinda cute!! 😂

Ответить
Amir Mohamad Noghani
Amir Mohamad Noghani - 12.08.2020 09:48

thanks, It really helped me to understand the difference

Ответить
Christ Loves Us
Christ Loves Us - 03.08.2020 17:57

thank you for this, helpful. lol

Ответить
techfornoobs
techfornoobs - 22.07.2020 19:12

so i'm guessing the "painting" part is expensive, which is why the robot is so useful?

Ответить
Vijay Kumar
Vijay Kumar - 26.06.2020 15:56

Slow and Steady gives you Knowledge.

Ответить
VaruN
VaruN - 22.06.2020 14:54

This is funny 😂

Ответить
Sriharsha C
Sriharsha C - 09.06.2020 01:42

A very decent explanation.

Ответить
Bikash Gosai
Bikash Gosai - 25.05.2020 10:21

awesomely explained ! .
Thanks

Ответить
hell-eye-queue
hell-eye-queue - 16.05.2020 08:30

2x

Ответить
Subrat Singh
Subrat Singh - 03.05.2020 07:24

Loved the way of how this concept has been explained, such that even a 9-year-old can understand this.

Ответить
Chetan Raina
Chetan Raina - 18.04.2020 18:48

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.

Ответить