0
Challenge · 19React Core

Uncontrolled Components

Coreused in ~70% of apps

Sometimes the DOM should own the value — and for file inputs, it must.

Core idea. An uncontrolled input keeps its value in the DOM; you read it with a ref when needed (defaultValue for the initial value).
Playground, this isn't a screenshot
Live demointeractive

No value/onChange — the DOM holds the value; we read it through a ref only when needed.

↑ play a little first, then dig in