logoalt Hacker News

esprehntoday at 1:55 AM1 replyview on HN

This is very cool, but I'm confused why the React player is smaller than the HTML player. What's actually in the size comparison there?


Replies

rahim_alwertoday at 2:05 AM

It’s largely because (1) the React runtime is not bundled so it’s technically not apples to apples, (2) the Web Component includes CSS as well since we’re using Shadow DOM.

Basically few kB for CSS and few kB for a thin “framework” layer for managing attr to prop mapping, simple lifecycle, context, and so on.