Server Components keep a component's JavaScript out of the browser (server and client components). Every Client Component still hydrates: no hydrate-on-visible/idle/never control is documented (next/dynamic with ssr: false is client-only rendering, not deferred hydration), although React hydrates each <Suspense> boundary as its own unit and prioritizes the one being interacted with (streaming guide). Enabling cacheComponents: true (the same flag as in section 4, enabled here) renders a cached shell and fills request-time holes. That is functionally close to a server island, but the API is an uncached data boundary inside Suspense, not a named island with its own cache entry.
Code example
Pages and layouts are Server Components by default and send no component JavaScript. Mark only the interactive part with 'use client'. That component still hydrates, but the rest of the page stays server-only.
// app/[id]/page.tsx (Server Component)
import LikeButton from '@/app/ui/like-button'
import { getPost } from '@/lib/data'
export default async function Page({ params }: { params: Promise<{ id: string }> }) {
const { id } = await params
const post = await getPost(id)
return (
<main>
<h1>{post.title}</h1>
<LikeButton likes={post.likes} />
</main>
)
}
// app/ui/like-button.tsx
'use client'
import { useState } from 'react'
export default function LikeButton({ likes }: { likes: number }) {
// …
}