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

Lifting state up

Where do we put state when two child components need to share it?

Answer options

  • In each child separately
  • In their shared parent component
  • In a CSS file
  • Always in localStorage

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