[@lit-labs/react] createComponent with generic types #3700
Unanswered
muratcorlu
asked this question in
Q&A
Replies: 1 comment
-
I noticed your question on StackOverflow and answered there. Please see my answer at https://stackoverflow.com/a/77889381/1362634 My solution feels like a bit of a hack or workaround but it seems to work well enough to be able to use generics from React for the wrapped web component. |
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
-
I have a custom Lit select component that uses Generic types for its
value
attribute and custom events.I couldn't manage to be able to pass this generic type from React.
My Current situation:
Of course,
ValueType
in code above doesn't mean anything. I need to get that type from the user ofBlSelect
react component.Any ideas how to manage this?
Beta Was this translation helpful? Give feedback.
All reactions