import { Box, Flex, Field, Input, Stack, Heading, Button } from "@chakra-ui/react" import { useForm } from 'react-hook-form'; export default function Account() { const { register, handleSubmit, watch, formState: { errors }, } = useForm(); const onSubmit = (data) => { console.log("Form submitted:", data); } console.log(watch("example")); // watch input value by passing the name of it return ( Account {/* Account */} User Name First Name Last Name Email ) }