Question · JavaScript and React course · Module 3: State and Events
Controlled vs Uncontrolled Components
What is the difference between a controlled component and an uncontrolled component in React?
Answer options
- An uncontrolled component requires using useState
- A controlled component cannot have event handlers
- A controlled component stores its value in React state, while an uncontrolled one relies on the DOM
- There is no difference, they are synonyms for the same pattern
You can check the correct answer by solving this task in the CodeWorlds game.