In which I weigh in on Web Components, which seem like a nothingburger:
https://www.naildrivin5.com/blog/2023/11/17/what-is-lightdom-webcomponents-buying-us.html
In which I weigh in on Web Components, which seem like a nothingburger:
https://www.naildrivin5.com/blog/2023/11/17/what-is-lightdom-webcomponents-buying-us.html
💯 this 👆🏻
To me, custom elements just add a sprinkle of syntactic sugar around the lifecycle, but that sprinkle is immensely valuable.
Encapsulation within a class helps nudge developers toward cleaner code too. Yes, this absolutely can be achieved with vanilla code, but it takes more discipline.
Of course, things like the (recent) ability to participate in native forms for validation/serialisation are great enhancements but use-cases are rarer.