-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possible to unify React-like and Web Components? #190
Comments
This is possible thanks to the great suggestion by @rniwa found in here: WICG/webcomponents#587. If the component has been registered with |
There is more work to do, but they are unified now in master and I will continue to improve so that the performance and expectations are met. Right now class components inherit from HTMLElement which is not correct as only Web Components should. |
The logic is already mostly shared between the two implementations. This would allow importing React components and using them as Web Components. The major difference would be defining if the Shadow DOM should be used or not. This would effectively make it so you would only ever need to import
Component
, and then use the result immediately in a Custom Element definition.The text was updated successfully, but these errors were encountered: