Hacker News new | ask | show | jobs
by Lx1oG-AWb6h_ZG0 1986 days 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/...

1 comments

Thanks for the RFC link.

I guess you can have components and hooks to share stuff between server and client?

If 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.