Skip to main content

What is controlled vs uncontrolled component in forms?

Entry React
Quick Answer Controlled: form input value is driven by React state รขโ‚ฌโ€ React owns the value, every keystroke goes through state. Uncontrolled: the DOM owns the value, accessed via a ref. Controlled gives you full control and validation at every change. Uncontrolled is simpler but you lose the ability to sync or validate on every input.

Answer

Controlled components store form values in React state. Uncontrolled components store input values in the DOM and use refs to access them.
S
SugharaIQ Editorial Team Verified Answer

This answer has been peer-reviewed by industry experts holding senior engineering roles to ensure technical accuracy and relevance for modern interview standards.

Want to bookmark, take notes, or join discussions?

Sign in to access all features and personalize your learning experience.

Sign In Create Account

Source: SugharaIQ

Ready to level up? Start Practice