3 ms·
Yeah-- but a single component is a much smaller degree of JS than an entire React application.
by mortallywounded 3y ago
Yeah-- but a single component is a much smaller degree of JS than an entire React application.
- troupo 3y agoDepends on how many "small components" you need. Reddit's new redesign downloads over 100 js files: https://x.com/dmitriid/status/1708772121260732494 https://x.com/dmitriid/status/1708772121260732494 to render a menu.
- mortallywounded 3y agoOf course there's a tradeoff--- if everything is a component then it may as well be an SPA (or at least bundle those files...). I don't think the core idea was to ever use "hundreds" of components. HTML should be able to do a majority of the work, and you sprinkle a component here or there as needed.