Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

In what way are properties verbose and limited in your view?

You can set them declaratively with a template binding in most template systems.



I showed earlier how it takes multiple lines and some fiddling with DOM to set a simple property with vanilla web components. Sure, if you're using a framework like lit, you have access to template binding, but at that point you might as well use an equivalent framework like SolidJS or Svelte which just skips the web component layer.


Bringing it back to the site, the author does describe implementations of context providers and signals:

https://plainvanillaweb.com/blog/articles/2024-10-07-needs-m... https://plainvanillaweb.com/blog/articles/2024-08-30-poor-ma...

I haven't tried signals yet, but I couldn't see why you could pass in an object with multiple values.


Skipping the web component later would skip then interoperable component part.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: