Question · JavaScript and React course · Module 10: React Ecosystem and Future

Server and Client Component Composition

Which Server and Client Component composition pattern is recommended in React Server Components?

Answer options

  • Server Component renders Client Component as a child
  • Client Component imports and renders Server Component directly
  • All components should be Client Components
  • Server Components cannot contain Client Components

You can check the correct answer by solving this task in the CodeWorlds game.