What is the correct way to pass the useForm hook to another functional component in a separate file?
I have a case where I am using array mode of forms. I have various array form inputs, and I don't want to repeat typing them all in one file as They're all very similar aside from the label and the field name. Right now I create the form field component and then call it various times, passing form as a prop. Is this a correct patter?
For example:
I want to reuse this in a detail view component and do something like this:
1 Reply
extended-salmon•3w ago
withForm helps you structure the expected type