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

What useRef returns

What does the call useRef(0) return?

Answer options

  • An object with a current property equal to 0
  • The number 0
  • An array [value, setter], like useState
  • A function that changes the component's state

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