Post

so excited for this! quick question, would all components be rsc components by default? I see that you have to explicitly export ServerComponent from route to make it a rsc route, so it'd mean that certain routes can be non-rsc but I don't how would that work if all components are rsc by default.

All routes are existing "client routes" by default as they are today. Exporting a ServerComponent instead of default switches it to a "server route". All other component exports ErrorBoundary, Layout, etc also become "server components" when doing so. It shifts the *entire* route to the server.

It's part of the "incremental migration story". You can mix and match server and client routes down the tree. There are no restrictions there.

0 reposts1 like