Training Grounds
Frozen InputWhite Belt
+10 Ki
Description

A text input lets the user type a name and displays it below. The input is frozen — nothing can be typed into it.

Anomaly

Clicking into the input and typing produces no visible change. The displayed name never updates.

Constraint
Do not remove the value prop
Fix must use onChange to call setState
Hint

A controlled input needs both a value and a way to update that value when the user types.

Consult the SenseiOnly for those truly stuck · Flip to reveal

A controlled input needs both a value and a way to update that value when the user types.

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