News for hackers. Stuff that matters.
Re:Waku: The Minimalist React Framework with Server Components by twodave on Sunday August 27, 2023 @09:26AM (#37282501)
I’ve found SSR is best when it’s just _one_ way data might be loaded in an app. If I use SSR at all it’s to initialize a page. You’re right that you need a separate API either way. I would think of the SSR host as a backend specifically for your web application. It shouldn’t do anything from a data standpoint that can’t also be accomplished via XHR, but it may layer some other things (like auth/cookies) on a top to provide a better/more secure web experience.

There are no comments on this comment yet.