React interview questions
Show answer
Server Components render on the server and send their output (not their code) to the client, so they can read databases or secrets directly and add no JavaScript to the bundle. They cannot use state, effects, browser APIs or event handlers — those belong in Client Components marked with
'use client'. You pass serialisable props from server to client components.