React · Senior · Question 9 of 75
How do Server Components differ from client components?
- ✓Correct answer: They run only on the server, have no state or effects, and aren't in the bundle
- 2They render on the server once and then fully hydrate on the client
- 3They're class components that React runs in a separate Node process
Explanation
RSCs can be async and access the database and file system, and their code and dependencies aren't sent to the browser. The result is a serialized tree (the RSC payload). State hooks, effects and event handlers aren't available in them - use client components for interactivity.