Skip to main content
InterviewHubPRO
Section Overview
Q18

Question 18 of 50

Part 2: Core Architecture & Implementation (Mid-Level)

36%
Next.js & App Router (50 Qs)•Part 2: Core Architecture & Implementation (Mid-Level)

Passing Props from Server Components to Client Components: Serialization Rules.

senior LevelCLIComponentsSystem Design

In Simple Words: Server Components run on the server; Client Components run in the browser. When a Server Component passes props to a Client Component, Next.js must serialize the props to JSON across the network:

  • Allowed Props: Strings, numbers, booleans, plain objects, arrays, Dates, BigInt, and Promises.
  • Forbidden Props: Functions (e.g. event handlers like onClick), class instances, symbols, and DOM elements!
  • Exception: Server Actions (functions marked with 'use server') can be passed as props to Client Components because Next.js converts them into secure cryptographic RPC pointers.