Question · Vibe coding with Claude Code course · Module 3: Twitter clone

Quiz: useState

What does useState(0) return?

Answer options

  • The number 0
  • An object {value: 0, setValue: function}
  • A function
  • An array [value, function to change it]

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