What is an uncontrolled component in React?

An uncontrolled component relies on the DOM itself for state. Input values are accessed via ref without linking them to React state.

const inputRef = useRef(null);
<input ref={inputRef} />;