Answer
| Controlled | Uncontrolled | |
|---|---|---|
| Source of truth | React state (value + onChange) | DOM (ref.current.value) |
| Validation | On every keystroke / submit | Typically on submit |
| Re-render | Every input change | Minimal |
| Best for | Dynamic validation, dependent fields, instant feedback | Simple forms, file inputs, integrating non-React widgets |
React docs recommend controlled inputs for most cases; uncontrolled + defaultValue for simple or performance-sensitive forms.