React · Senior · Question 9 of 75

How do Server Components differ from client components?

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.

Further reading

Problem with a question

React · Senior · question 9

Test yourself

Take the React · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz