4 ms·
One of the main weaknesses of vdom is that React now has to solve these issues that browsers already do natively.
by mosdl 7y ago
One of the main weaknesses of vdom is that React now has to solve these issues that browsers already do natively.
- ng12 7y agoCan you elaborate? At a minimum vdom is just doing work you would have had to do manually with DOM apis.
- mosdl 7y agoWith regular dom/javscript, you can be typing into an input field and updating unrelated DOM and the typing should not be impacted much (unless you are changing a lot of DOM and spiking the cpu). But with React it has to reconciliate the input field.
- acemarke 7y ago"controlled inputs" are certainly the recommended React idiomatic pattern, but you can use standard uncontrolled inputs if you want.
- duxup 7y agoI kinda wonder how the regular dom would solve some of this. I mean just rendering a ton of stuff my browser will hang up on straight html page too. Granted that's a very general example and Concurrent is solving some things that in some cases aren't quite 1:1.