Skip to content

Instantly share code, notes, and snippets.

@bicky-tmg
Last active September 21, 2022 02:26
Show Gist options
  • Save bicky-tmg/ec741d1a24ffd475bb7247c94ffac516 to your computer and use it in GitHub Desktop.
Save bicky-tmg/ec741d1a24ffd475bb7247c94ffac516 to your computer and use it in GitHub Desktop.
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