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