Question · Vibe coding with Claude Code course · Module 3: Twitter clone
Quiz: Client vs Server Components
When do you need to add 'use client' at the top of a file?
Answer options
- Always, in every component
- Only in page.tsx
- When you use useState, useEffect, or event handlers (onClick)
- Never - Next.js adds it automatically
You can check the correct answer by solving this task in the CodeWorlds game.