CodeZettaInterview Hub

React · Server Components · Senior · Concept

Why can't RSCs use useState?

Short Interview Answer

They don't run on the client as interactive instances; state/effects require client runtime.

Detailed Explanation

Push interactivity into client children. Fetch on server instead of effects.

Did you know this answer?