3 ms·
Can you elaborate? At a minimum vdom is just doing work you would have had to do manually with DOM apis.
by ng12 7y ago
Can 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.