uncontrolled component
A component that keeps its own state internally, optionally starting from a default such as defaultOpen or defaultChecked.
In more detail
Uncontrolled components work with no setup, which suits simple cases like an informational accordion. The parent cannot set the state later, only its starting value.
Related terms
- controlled component — A component whose state, such as whether it is open or checked, is passed in by its parent, which also handles changes.
- controllable state hook — A hook that lets one component work both controlled and uncontrolled, using the parent's value when given and its own state otherwise.
Taught in
- Headless Architecture: State vs Presentation Separation — Design Systems & Component Engineering