React·100 questions

How to make uncontrolled input and when is it justified?

Answer
Use defaultValue instead of value.
Read value via ref on submit.
Suitable for large forms where performance matters.
Do validation on submit/blur.
React Hook Form often uses this approach.
Was this answer helpful?

More questions in this topic

Related questions from other topics