Unique Errors for Each Field
Back to our form! In this lesson, we'll learn how to distinguish each field instead of showing the same error for each one.
We'll cover the following...
Returning to our component, we last left it in a state that was ready to accept validation rules. If you’ll remember, we wrote some basic code to show an error on each input field upon blur, as if validation failed.
Selecting the right validator #
To correctly validate each field, of course, we have to differentiate which one is being blurred and apply ...