Last active
September 21, 2022 02:26
-
-
Save bicky-tmg/ec741d1a24ffd475bb7247c94ffac516 to your computer and use it in GitHub Desktop.
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
const Form = () => { | |
const { | |
register, | |
handleSubmit, | |
formState: { errors }, | |
} = useForm<ValidationSchema>({ | |
resolver: zodResolver(validationSchema), | |
}); | |
const onSubmit: SubmitHandler<ValidationSchema> = (data) => console.log(data); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment