React · Junior · Question 67 of 75

How does defaultValue differ from value on an input?

Explanation

Uncontrolled inputs keep their value in the DOM; you read it on submit (e.g. via FormData). Changing defaultValue later has no effect.

Further reading

Problem with a question

React · Junior · question 67

Test yourself

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

Take this quiz