"use client"; import { Button } from "@/components/ui/button"; import { Checkbox } from "@/components/ui/checkbox"; import { Input } from "@/components/ui/input"; import { Label } from "@/components/ui/label"; import { useForm, SubmitHandler } from "react-hook-form"; type Inputs = { example: string; exampleRequired: string; }; const RegForm = () => { const { register, handleSubmit, watch, formState: { errors }, } = useForm(); const onSubmit: SubmitHandler = (data) => console.log(data); console.log(watch("example")); return (
); }; export default RegForm;