Hacker News new | ask | show | jobs
by random_kris 1001 days ago
I wonder how much overhead does the rendering or react on server add ?

If I have an API sever and then instead of calling those apis from client, I make all db calls on the server and then render the html. How much of processing that was done was spent on rendering html.

Also I wonder how react server components and serverside rendering go with localfirst software?

I love localfirst web apps, they seem kinda incompatible with serverside apps

2 comments

In either case you have database calls (when calling an API, or when rendering from server). Adding network overhead (the subsequent request for data) is the last thing I'd want, if I could avoid it.
You can choose on a component basis what you render server-side.

This project is a marketing site, for which client-side rendering never made sense.