import { useController } from "https://deno.land/x/netzo@0.5.108/deps/react-hook-form.ts";
Custom hook to work with controlled component, this function provide you with both form and field level state. Re-render is isolated at the hook level.
Type Parameters
optional
TFieldValues extends FieldValues = FieldValuesoptional
TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>Parameters
props: UseControllerProps<TFieldValues, TName>
- the path name to the form field value, and validation rules.