re: Modern Web Components VIEW POST

TOP OF THREAD FULL DISCUSSION
re: I’m not sure why anyone would want to write vanilla code. The available standard API just isn’t enough (and probably never will be).
 

Whether you choose to or not, the option is there because it's part of the platform. It doesn't hurt you, either in bytes or complexity, to do so.

 

But the standard API is more complicated to use, is it not? Just rendering a static template requires you to call a bunch of APIs. I don’t even know if I’m supposed to try to memorize those patterns or just copy-paste the boilerplate code whenever I’m creating a new component.

It’s much more complicated than say writing a template literal inside a render function as with Lit. That’s why I said, I’m not sure why anyone would use (just) the standard API.

code of conduct - report abuse