logoalt Hacker News

tipiiraiyesterday at 2:18 AM1 replyview on HN

The issue is the coupling of HTML and CSS into your JavaScript code, which is a step away from the standards first development model.


Replies

spankaleeyesterday at 2:24 AM

Can you explain how it's not standards first?

Web components can be written in standard JS modules, loaded by or inlined into standard HTML, instantiated by standard custom element tags, rendered with the help of standard <template> elements, and styled with standard CSS.

If you don't use the web platform's native facilities for re-use, then you do have to use some non-web-standard system, like a server framework. Is there some way you see that that's more standard than the web?

show 1 reply