3 ms·
Virtual DOM tends to be faster because bridging between JS and native layers can be expensive. If diffing is done in the JS layer, some potentially expensive ca
by rpastuszak 8y ago
Virtual DOM tends to be faster because bridging between JS and native layers can be expensive. If diffing is done in the JS layer, some potentially expensive calls can be batched or ignored if a change is unnecessary.
- baybal2 8y agoI mean why they use it at the stage when they create their own virtual DOM copy from the template string, not during the time they do changes when the app is running.