In Next.js 15, is there a reason to use RSC and SSR together? #73969
-
SummaryHello, I am a junior developer studying RSC.
Additional informationNo response ExampleNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
SSR is a blanket term, for generation/creation of HTML strings, on a server, which are then sent to a client. How this is created, how is it sent, etc, are implementation details. RSC, are React Server Components. These are a new type of component, which, among other things:
What you call RCC, I guess means, Client Components, these are the components we have used all the time, up to this point. Worth mentioning that Client Components, are also SSR'd, reactwg/server-components#4
So using Server Components, necessarily, implies SSR. Frameworks such as Next.js have also introduced a new SSR capability, build time generation. That is, pre-rendering pages, to have HTML, CSS, and JS, upfront, so that when the server is running serving requests, content can be served directly, without rendering on-demand, as the request arrives. That's fundamentally, the paradigm introduced by the Pages Router, and incrementally it was enhanced to regenerated, or even create new pre-rendered content, during runtime. There's now an experimental feature called, Partial Pre Rendering, which aims to make a mix, of pre-rendering a React tree, leaving wholes for dynamic on-demand, subtrees. |
Beta Was this translation helpful? Give feedback.
SSR is a blanket term, for generation/creation of HTML strings, on a server, which are then sent to a client. How this is created, how is it sent, etc, are implementation details.
RSC, are React Server Components. These are a new type of component, which, among other things:
What you call RCC, I guess means, Client Components, these are the components we have used all the time, up to this point. Worth mentioning that Client Components, are also SSR'd, reactwg/server-components#4
rsc
is also a format, used by React, to communicate the shape of a UI tree, from the server to the client, during ru…