Next.js · Middle · Question 25 of 75
Which props can be passed from a server page to a client component?
- ✓Correct answer: Serializable values and Server Actions; regular functions can't be passed
- 2Any values, including classes and event handlers
- 3Only strings - everything else must be converted to JSON manually
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.