Replies: 2 comments 9 replies
-
Take a look at #8618 to see if it's what you're after |
Beta Was this translation helpful? Give feedback.
9 replies
-
Hi, I created a PR that demonstrates a Lens approach for building reusable components with TypeScript support #12284 |
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
Uh oh!
There was an error while loading. Please reload this page.
-
I have a common field that is going to use in multiple form . I want to avoid duplication and will to use that common field in my multiple component. I want to create generic that accept control and setValue of different kind of form.
For example i have
country listing Select field
. Two forms that is forprofile
andPost
, in these two form i gonna useCountry select field
,Now i have two different forms and in these form i have different control and setValues. How can i give type to props of
Country Select Field
that will able to accept props from both forms and will able to set of get value.Mainly i want to know how can i give type for a common field that gonna use in different kind of forms.
Beta Was this translation helpful? Give feedback.
All reactions