You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One recommended way to tackle this is to set up a use state for every input option. When ever a field is interacted with, change the state for an input if certain conditions are met; i.e) passwords match, the phone number field is fully filled out. Add an extra function that checks all use states before allowing a submit to occur. Nest this function in the existing handleSubmit function. If a field is not present or incorrect, print it under the form in red, bold text and do not allow the handle submit code to run.
The text was updated successfully, but these errors were encountered:
Description
In create account:
One recommended way to tackle this is to set up a use state for every input option. When ever a field is interacted with, change the state for an input if certain conditions are met; i.e) passwords match, the phone number field is fully filled out. Add an extra function that checks all use states before allowing a submit to occur. Nest this function in the existing handleSubmit function. If a field is not present or incorrect, print it under the form in red, bold text and do not allow the handle submit code to run.
The text was updated successfully, but these errors were encountered: