Share State Between Siblings
Talk it through with a coach who asks guiding questions and gives hints until you reach the answer. Pass to mark the challenge as completed.
The problem
- easy
- Pro
A page has two sibling components: a search box and a results list. Each keeps its own copy of the search text in state, so typing in the box doesn't update the list. Explain how you would restructure the components so the list always shows results for what's typed in the box.
Talk this problem through with an AI coach
This is a Pro challenge. Sign in with Google, then upgrade to start a voice session.