if components would be reused outside of the language then we would lose type safety or we would need to implement runtime type checking on the boundaries.
there is no spec as far as I am aware for virtual DOM to be implemented in a browser, dropping this requirement would mean that either the implementation still have to be in the application or we would lose performance rendering with innerHTML.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thank you for that comment!
It could certainly be compiled to web components, it's technically possible, but I don't think it's the right way to go:
the spec is not very well supported: caniuse.com/#search=web%20components it can be polyfilled but that's not ideal.
if components would be reused outside of the language then we would lose type safety or we would need to implement runtime type checking on the boundaries.
there is no spec as far as I am aware for virtual DOM to be implemented in a browser, dropping this requirement would mean that either the implementation still have to be in the application or we would lose performance rendering with
innerHTML
.