December 2019
Intermediate to advanced
598 pages
12h 21m
English
The onSubmit function prop is likely to call a web service asynchronously and so needs to be asynchronous.
The touched state allowed us to prevent validation checks when the user first enters the field, which can be annoying for the user. Generally, it is better to do the validation checks when the field loses focus and if the user comes back to the field and changes it.
<label htmlFor={name}>{label}</label> ...Read now
Unlock full access