I want to pass the function setValue() down to a child component. Then I get the following error message:
Type 'UseFormSetValue<Inputs>' is not assignable to type 'UseFormSetValue<Record<string, any>>'
How can I pass down the function correctly?
function App() {
const {
register,
setValue,
} = useForm<Inputs>({
});
return (
<form>
<Field2 setValue={setValue} register={register} />
<input type="submit" />
</form>
);
}
