Server Components render on the server, at build time or per request, and their code is not included in the browser bundle. They can be async, read from a database or file system directly and keep secrets on the server. They cannot use state, effects or event handlers.
Interactive parts are written as Client Components, marked with the use client directive at the top of the file. A Server Component can render Client Components and pass them serialisable props. Using Server Components requires a framework that supports them, such as Next.js with the App Router.



