Question · Vibe coding with Claude Code course · Module 5: Reddit clone

Quiz: Where the Join state lives

Why does Feed, not CommunityHeader, hold the list of guilds you joined?

Answer options

  • Because the header stays in the same place when the guild changes, and its own state would carry over to the next guild
  • Because a component without "use client" cannot receive props
  • Because useState works only in files from the app folder
  • Because CommunityHeader cannot have buttons

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