logoalt Hacker News

sublinearlast Sunday at 7:55 PM1 replyview on HN

Couldn't you just static render the parts that you're using SSR for?

I am not trying to be dismissive, but a common strict requirement is static hosting from a CDN, embedded environments, etc.


Replies

user34283last Sunday at 9:39 PM

If you static render, it won't be an interactive application.

With React SSR you get the best of both: stream static HTML chunks immediately, and rehydrate with JS later, prioritizing components the user interacts with.

It should load quicker compared to traditional React apps where the browser loads the HTML, then loads the JS bundle, and only then renders a loading skeleton while likely triggering more requests for data.

show 3 replies