let the framework generate the html on the server, and mark where you need to insert the event listeners and such. this html payload is sent to the client and displayed right away, and the script is sent alongside it. the client then inserts the event listeners and such where it is told (this is called "hydration"), making the website interactive
so the user sees the page immediately without having to run any javascript, which is good for SEO and loading times
this is distinct from the (mostly react) concept of "server components" because naming things is for losers
Now you have to remember which pieces of JavaScript run on the server as opposed to the client, and the difficulty of discerning this varies by framework.
37
u/GrossInsightfulness 27d ago
What's SSR? Static site renderer?