4 ms·
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
by MrJohz 1y ago
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.
- spankalee 1y agoSkipping the web component later would skip then interoperable component part.
- mikebelanger 1y agoBringing it back to the site, the author does describe implementations of context providers and signals: https://plainvanillaweb.com/blog/articles/2024-10-07-needs-more-context/ https://plainvanillaweb.com/blog/articles/2024-10-07-needs-m... https://plainvanillaweb.com/blog/articles/2024-08-30-poor-mans-signals/ 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.