Created
October 9, 2023 18:09
-
-
Save codigoconjuan/0494cc3a11f808fe6478a56e7d51100f to your computer and use it in GitHub Desktop.
Validación de Email para React-Hook-Form
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{...register("email", { | |
required: "El Email es Obligatorio", | |
pattern: { | |
value: /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i, | |
message: 'Email No Válido' | |
} | |
})} |
goooooooooood
Gracias profe!
Gracias
Super!!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks!