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).
poke it, drag it,
try to break it
try to break it
no slides here.
you drive.
you drive.
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