4 ms·
> When the javascript arrives it is run again on the browser to re-generate the DOM with event handlers attached. Not the DOM, but the virtual DOM. Instead of
by wonnage 4y ago
> When the javascript arrives it is run again on the browser to re-generate the DOM with event handlers attached.
Not the DOM, but the virtual DOM. Instead of inserting elements (which is expensive), it can just walk the existing server-rendered DOM and attach listeners.