React · Senior · Question 12 of 75
Which props can't be passed from a Server Component to a Client Component?
- ✓Correct answer: Regular functions and class instances - they aren't serializable
- 2Arrays and objects nested more than three levels deep - they're truncated
- 3Strings longer than 64 KB and any
DateorMapvalues
Explanation
Props cross the network, so they must be serializable: primitives, arrays, plain objects, Date, Map, Set, promises, JSX. You can't pass a function - except Server Functions ('use server'), which turn into a reference for calling.