News for hackers. Stuff that matters.
Re:Everything About React Server Components by Lx1oG-AWb6h_ZG0 on Saturday January 16, 2021 @10:41PM (#25807881)
> 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/...

Re:Everything About React Server Components by pdevr on Saturday January 16, 2021 @11:03PM (#25807986)
Thanks for the RFC link.

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

Re:Everything About React Server Components by ameliaquining on Sunday January 17, 2021 @12:19AM (#25808379)
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.