The web has evolved significantly over the years, and one of the most exciting advancements is the introduction of Web Components and Shadow DOM. T...
For further actions, you may consider blocking this person and/or reporting abuse
With one helper function
You can make the
constructor
less verbose, and better extendable.Also see: Dev.to - Web Components lesson #102 - 5 more lessons after #101
Nice.
Great explanation
Thanks
Really great work!
Thanks
Thank you @matin_mollapur
Great work
Thanks @ankit_kumar_41670acf33cf4 For kind words, please subscribe to my YouTube channel to support my channel and get more web development tutorials. Thank You
What about Can I Use? )
Support since 2018 in all modern browsers (when Edge switched to the Chromium engine)
(I would say 6 years, but that will be wrong in 2025, so you need a Web Component here to always display the correct number of years)
caniuse.com/?search=web%20components