Put in order · Vibe coding with Claude Code course · Module 3: Twitter clone
Lifting state up steps
Arrange the steps of moving state up to the parent:
Items to put in order
- The parent passes the value as a prop to the child
- The child calls that function to update the parent's state
- The parent passes a state-changing function as a prop
- State is held in the parent component
You can check the correct answer by solving this task in the CodeWorlds game.