Question · Vibe coding with Claude Code course · Module 4: Instagram clone

Quiz: Two States in Gallery

Gallery has two useState calls: items and selectedId. What does that mean?

Answer options

  • The second useState overwrites the first
  • The component holds two independent states, each with its own setter
  • Both states must always have the same value
  • useState works only outside a component

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