A custom element base class
mayank.co/blog/custom-element-baseI can’t believe I’ve never tried making own my base class, considering that I’ve made my own CSS reset.
I mentioned it in my post about defining custom elements, so let’s start with the static register() method.