logoalt Hacker News

proxyscore • today at 10:06 AM • 3 replies • view on HN

How can you say react isn't bloated it requires a full download on first website visit, web components are browser native, not saying they're better, but to say react is not bloated is an affront , there was a time where people were carefully deciding on whether or not to include jquery.


Replies

afiori • today at 10:19 PM

If you are referring to how SSR pages need to download the serialised page "props" and not just the html+js then good news! Solid 2.0 is about to solve this.

If you are referring to having to download react itself then you have to download the WebComponents code too.

Actually with smart use of forms and links you could make a js free react page (using forms to submit state changes) more easily than for WebComponents

esperent • today at 10:55 AM

> web components are browser native

I would say very few people are using bare web component. They'll be using a library like Lit at the very least, so your argument is moot.

raincole • today at 11:52 AM

> full download

Like 50kb. Roughly the same size as Amazon website's icon sheet.