|
|
|
|
|
by wokwokwok
1052 days ago
|
|
mm... Web components aren't 'an' api, it's a specific way of using a set of apis, and specifically requires you to use a set of templates in a way that frameworks (which looovvvveeee DSLs) won't accept. The other bits? shadow dom? Custom elements? eh. Those are things a framework will wrap happily enough if they see value in it. Maybe some already do? As you say, you'd never know... ...but those html templates will never fly. They're just crazy bad ergonomics and framework authors will never accept them. That's really the core of the issue; invoking components in your layout requires you to use some kind of layout template, and every framework does it differently. That's why cross framework css solutions (eg. tailwind) are massively successful, because they can be called easily by anyone regardless of the templating; the same is not... and, frankly, seems like it never will, be true of web components. |
|