3 ms·
> At a high level, React Server Components are Components that can be rendered on the server and on the client. This is blatantly wrong. The RFC (and Dan Abram
by Lx1oG-AWb6h_ZG0 6y ago
> At a high level, React Server Components are Components that can be rendered on the server and on the client.
This is blatantly wrong. The RFC (and Dan Abramov’s video) make it clear that server components can only be run on the server: https://github.com/josephsavona/rfcs/blob/server-components/text/0000-server-components.md#capabilities--constraints-of-server-and-client-components https://github.com/josephsavona/rfcs/blob/server-components/...
- pdevr 6y agoThanks for the RFC link. I guess you can have components and hooks to share stuff between server and client?
- ameliaquining 6y agoIf a component conforms both to the rules for server components (no interactivity) and to the rules for client components (no direct access to backend resources), then it can be used both as a server component and as a client component. This is useful for many purposes. But it is not true of server components in general.