Omit HTMLElement Properties within the createComponent Function (@lit-labs/react) #2792
konstantin-paulus-rs
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When creating React components from my lit components, the
createComponent
function's returned element types extend all HTMLElement properties. This makes it somewhat difficult to integrate the components, as the type hints offer hundreds of properties, making it difficult to find my custom properties (the ones I actually need).The source code already points out this problem with the comment:
line 142
Can we thereby infer that this behavior will be changed in the future?
Beta Was this translation helpful? Give feedback.
All reactions