SyntaxFix
Write A Post
Hire A Developer
Questions
If you want to only trigger validation when the input looses focus you can use onBlur
Trivia: React <17 listens to blur event and >=17 listens to focusout event.
blur
focusout