Skip to content

Instantly share code, notes, and snippets.

View oscarteg's full-sized avatar
🏠

Oscar te Giffel oscarteg

🏠
View GitHub Profile
import { zodResolver } from "@hookform/resolvers/zod";
import { type UseFormProps, useForm } from "react-hook-form";
import { type z } from "zod";
/**
* A wrapper around `useForm` that uses `zodResolver` as the resolver.
*
* @example
*
* const schema = z.object({