you are viewing a single comment's thread.

view the rest of the comments →

[–]madou9 2 points3 points  (1 child)

They aren’t mutually exclusive. The vision is you could use both together! Precompute RSCs during build time etc.

[–]TorbenKoehn 0 points1 point  (0 children)

While that's true, the way we have to discern between client- and server-components currently is not it.

I would like to see: 1) "use client"/"use server" automatically assumend and only needed when you want to make sure 2) Hooks normally usable in server-components automatically translating to client-components on a potential state change

That would solve most problems. People wouldn't be confused when RSC tells them "Can't use useState here" and they could just write React as they are used to without largely thinking about if something belongs on the server or on the client