Next.js · Middle · Question 25 of 75

Which props can be passed from a server page to a client component?

Explanation

Props travel over the network in the RSC payload. Objects, arrays, Date, Map, promises, JSX and Server Functions are supported. You can't pass a regular function (onClick={() => ...}) from a server component - declare the handler in the client component.

Further reading

Problem with a question

Next.js · Middle · question 25

Test yourself

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

Take this quiz