Description

A name editor shows a text input and a saved name below it. The user can type a new name, blur to save, and click Reset to go back to the default. After editing, the Reset button updates the label but leaves the input field showing the old typed value.

Anomaly

Type "Bob" in the input field, click outside — the saved label shows "Bob". Click Reset — the label correctly reverts to "Alice" but the input field still shows "Bob". The input and the label are out of sync.

Constraint
Switch the input from defaultValue to value with a matching onChange handler
Do not remove the Reset button or the onBlur save behavior
Hint
Consult the SenseiOnly for those truly stuck · Flip to reveal

defaultValue only sets the input's initial value on mount — it is read once and then ignored. After mount, changing defaultValue has no effect on what the input displays.

Loading editor…
Correct Solution
Loading...
Expected OutputGoal State
Your OutputLive