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?