← Back to context

Comment by throwaway314155

8 days ago

I am having trouble understanding this article's premise:

```

RSC means React Server Components.

And yet, although this blog is built with RSC, it is statically served from a Cloudflare CDN using their free static hosting plan. It costs me exactly zero.

Zero.

How is this possible?

Aren’t these React Server Components?

```

Why is any of that confusing? The very first thing I think of when someone says "React Server Components" is, well, server side rendering of react components. What else could it possibly be? Is anyone who is an established React developer really confused by this?

If you think of “server side rendering”, you might be assuming that it requires runtime Node.js hosting (which is usually paid). But that’s not the case — my blog is statically generated during deployment. Like Jekyll. So the point of the post is to show why it’s not a contradiction. In modern tools, “static” is often an output mode of “server” frameworks rather than a separate category of tools.

  • > If you think of “server side rendering”, you might be assuming that it requires runtime Node.js hosting (which is usually paid)

    Because that is what SSR mean. Not to be confused with SSG which is the case for your blog.

    • Sure. I’m just trying to answer the parent’s question? I wasn’t the one to bring “SSR” into the conversation.

this post describes not really running RSC on the server, but instead running it on the developer's laptop, taking the resulting HTML, and pushing that to a server. the more common use case of RSC is where it is actually being run server-side as requests come in, perhaps behind a cache, not baking everything down into a static bundle once