Fix: Event handlers cannot be passed to Client props
An onClick from a Server Component can't be passed as a prop — functions aren't serializable across the RSC boundary. Where "use client" goes.
Tag archive
An onClick from a Server Component can't be passed as a prop — functions aren't serializable across the RSC boundary. Where "use client" goes.
Next.js 15 made cookies() async — await cookies() in Server Components, Actions and Route Handlers. Covers the codemod and NEXT_STATIC_GEN_BAILOUT.
revalidateTag not clearing stale data? Next.js caches at four layers — how revalidatePath, revalidateTag and stale-while-revalidate actually interact.
Next.js rejects react-dom/server in Server Components and Route Handlers. Why the compile error exists, and the 3 fixes that work on Next.js 15 and 16.
What Server Components Actually Do Server Components change how we think about React. No...
Learn when to use Server Components vs Client Components in Next.js 16 App Router, with real code examples, common mistakes, and a clear decision framework.

The App Router flipped the default. Every component you write is a Server Component until something...

Ever wondered how React Server Components stream content to your app and keep client and server logic neatly separated? Let me walk you through the guts of this feature, based on my own debugging and experimentation.
getSession() is unsafe in Next.js Server Components, proxy, and Server Actions. getClaims() is the correct call. Here is exactly why, what breaks, and how to fix it.
"use server" does NOT make a Server Component — it marks server functions callable from the client. "use client" marks a boundary in the import graph. Here is what each directive actually does, with the mistakes to avoid.
Master React Server Components with this comprehensive guide. Learn RSC architecture, data fetching patterns, streaming, and best practices for Next.js 15.
Complete guide to data fetching patterns in Next.js with Supabase. Master Server Components, streaming, parallel queries, and caching for optimal performance.