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

Updating an input

What do we run in an input's onChange to update the state?

Answer options

  • console.log(input)
  • e.preventDefault()
  • useEffect(value)
  • setState(e.target.value)

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