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

Quiz: useEffect

What does useEffect(() => {...}, []) do with an empty dependency array?

Answer options

  • It runs after every render
  • It never runs
  • It runs before the render
  • It runs only once when the component mounts

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