Controlled vs Uncontrolled Components
Controlled: React state is the truth. Every keystroke goes through setState. Easy to validate, disable Submit, test. Uncontrolled: the DOM keeps the text. You read it via ref on submit (or defaultValue for initial). Less re-renders, less control.
Most interview answers: prefer controlled for forms. Use uncontrolled for quick prototypes or heavy uncontrolled widgets (some date libraries). Don’t say one is ‘wrong’ — say which job fits.
Controlled vs Uncontrolled Components — type hooks, submit → logs hooks. DOM kept the text. Controlled would use useState instead.
controlled: state → value uncontrolled: DOM + ref
Define both. Say when you’d still use a ref.