What is controlled vs uncontrolled component in forms?

Entry React

Answer

Controlled components store form values in React state. Uncontrolled components store input values in the DOM and use refs to access them.

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