2 ms·
Untrue. The browser allows you to construct the "real" DOM using an API. The difference is that you can update only the parts of the page that require updating,
by bastawhiz 10y ago
Untrue. The browser allows you to construct the "real" DOM using an API. The difference is that you can update only the parts of the page that require updating, rather than creating new HTML and forcing it to be reparsed (and refreshing the entire page) on every state update.
Try, for instance, to rerender the DOM in the way your code does when you have event listeners. If you're creating new markup each time, you blow away your listeners on the whole page.