</> control: Control
This object contains methods for registering components into React Hook Form. Pass it to Controller, useController, useWatch, useFieldArray, useFormState, or FormProvider so those APIs can connect to the same form instance — it's optional wherever the component is already inside a FormProvider.
RULES
Important: do not access any of the properties inside this object directly; it is for internal use only.
Examples:
import { useForm, Controller } from "react-hook-form"import { TextField } from "@mui/material"type FormInputs = {firstName: string}function App() {const { control, handleSubmit } = useForm<FormInputs>()const onSubmit = (data: FormInputs) => console.log(data)return (<form onSubmit={handleSubmit(onSubmit)}><Controllerrender={({ field }) => <input {...field} />}name="firstName"control={control}defaultValue=""/><input type="submit" /></form>)}
Thank you for your support
If you find React Hook Form to be useful in your project, please consider starring and supporting it.