4 ms·
I love the new Custom Elements api. Creating a new HTML Element is incredibly easy: https://github.com/lindseymysse/custom-html-element/blob/main/component.js
by LNSY 5y ago
I love the new Custom Elements api. Creating a new HTML Element is incredibly easy:
https://github.com/lindseymysse/custom-html-element/blob/main/component.js https://github.com/lindseymysse/custom-html-element/blob/mai...
This is my favorite feature in HTML / ES6.
I really love programming without pre-processors or compilers. It feels so much more immediate and clear. I think the browser is not just acceptable, but is really good these days.
One thing I have found among junior devs is they will know React really well but not remember things like how the box model works or basic HTML elements like the <br /> tag. This leads to all sorts of frustrating code for everyone.
What I would like to see is more designers writing pure HTML and CSS instead of working in vector editors. Our designs will get better when they understand what HTML is good at. I think custom HTML components are a great start to this.