CodeZettaInterview Hub

React · Components · Fresh / Intern · Comparison

Controlled vs uncontrolled components?

Short Interview Answer

Controlled: form values driven by React state; uncontrolled: DOM holds state via refs.

Detailed Explanation

Controlled enables validation and instant UI reactions. Uncontrolled can be simpler for basic forms or non-React integrations.

Did you know this answer?