React · Middle · Question 74 of 75

What is the difference between a controlled and uncontrolled component in a design system?

Explanation

Good component libraries support both: a value prop for full control and defaultValue for convenience, never switching between them during a component's life.

Further reading

Problem with a question

React · Middle · question 74

Test yourself

Take the React · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz