LESSON 2.3

Passing data across the boundary

06:19·13,528 learners
Mira KovacMira Kovac
Next lesson

In this lesson you will

  • Pass only serialisable props into client components
  • Use children to slot server content inside a client shell
  • Avoid leaking server-only data through props

Props crossing into a client component get serialised, which is why functions and class instances fail. Composition through children keeps server-rendered content out of the bundle.

What this lesson covers

  • Pass only serialisable props into client components
  • Use children to slot server content inside a client shell
  • Avoid leaking server-only data through props

This lesson sits in Server and Client Components, part of Next.js App Router in Depth. It assumes what came before it and leads directly into the next lesson in the module.

UP NEXT

3.1 · Fetching data in server components

04:21

Next.js App Router in Depth

42%

Every lesson, searchable to the second.

© 2026 BIBLION

PRIVACY · TERMS · CONTACT