of course every other framework user would ask a version that works in there too ...
<!-- ... while this would work everywhere ... --><dev-articlesusername="comscience"></dev-articles>
This component is an excellent use case for Custom Elements.
customElements.define('dev-articles',classextendsHTMLElement{staticgetobservedAttributes(){return['username'];}attributeChangedCallback(key,_,value){// do whatever you like in here 👍}});
of course every other framework user would ask a version that works in there too ...
This component is an excellent use case for Custom Elements.
Let's use the right tool for the job 👋
P.S. I've made a uce version which is based on Custom Elements, so you can have a look in there too: codepen.io/WebReflection/pen/GRpXq...