InterviewBuddy
All interview questions

What belongs in a Server Component?

Beginner

Answer

Server Components can fetch data and render on the server without shipping their component code to the browser. Use Client Components for state, effects, event handlers, and browser APIs.

Explanation

A client boundary determines the client module graph. Server Components can pass serializable data and rendered server content to Client Components.

Example

// Interactive component file
"use client";