3 ms·
No it isn’t. React will simply render the object you give it. That means that React doesn’t need to know when data changes, it simply renders the ui, diffs it
by iovrthoughtthis 7y ago
No it isn’t.
React will simply render the object you give it. That means that React doesn’t need to know when data changes, it simply renders the ui, diffs it to the current ui and applys the changes.
Unless your using component state but even then, it’s the rendering that measures change. The act of updating the state just lets React know “time to see if anything important changed”. Vue seems to tra Co data changes granularly which means it needs to understand the change at the point if mutation. This means it needs control of the data you want to render.