Created
February 13, 2024 05:00
-
-
Save MrGrootx/e995fc8e8607161ab94cd2b1d6114f76 to your computer and use it in GitHub Desktop.
react-hooks-form (email validation) with zod
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
| email: z | |
| .string() | |
| .email({ | |
| message: "Enter a valid email address", | |
| required_error: "email requried", | |
| }) | |
| .trim() | |
| .toLowerCase(), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment