Yeah, the lack of concrete examples makes this feel a bit too much like a shower thought to me.
Yeah, the lack of concrete examples makes this feel a bit too much like a shower thought to me.
In the last 10 years the only new web tech I’ve seen get traction outside of tech communities - so actual job postings etc - is vue.
This was not a tutorial or an article on how to use Web Components.
I'm working on building exactly this resource alongside a series of posts on web components.
The Stackblitz example is quite good too.
I'll give it shot to build a super simple one with just vanilla JS without helper libraries like Lit or Stencil. I think I'd take the same approach as I would with React, and I think the biggest difference would be where the fetch gets executed. In React you'd expose a prop like "submitHandler", but here I would emit an event from the component (after whatever debounce amount) and expect the caller to attach an event listener to my custom event to perform the fetch.