Replies: 1 comment
-
Maybe this is the solution you are looking for - https://github.com/orgs/react-hook-form/discussions/9345 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I've created a component
<AddressFields />
which contains 3 inputs: street, zip_code and city. I'd like to use this component in few different forms that have this address fields in the schema.I tried to create props like that:
but then inside the actual component I can't use controller:
How to make this component reusable in every form that contains this address fields? 😄
Beta Was this translation helpful? Give feedback.
All reactions