How to add Custom Events to Web Components

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ม.ค. 2025

ความคิดเห็น • 8

  • @stacherski
    @stacherski 3 หลายเดือนก่อน +5

    This is pure gold, I've followed your web component series with great interest. Since then I've already re-worked some of the code I used into web components, and it works just perfect! I did a working calendar web component, kanban board, user session timer and even a snake game, all customizable. Again, pure gold, anything else on the web is about typical shadow-dom'd components, but your approach just sticks with me. I have still much to learn, so please keep up the good work!

    • @gomakethings
      @gomakethings  3 หลายเดือนก่อน

      So happy to hear that!

  • @CristianKirk
    @CristianKirk 3 หลายเดือนก่อน

    Thanks a lot. Looking forward to a new series about web components. I still can't get why they get so much hate from the dev community.

    • @gomakethings
      @gomakethings  3 หลายเดือนก่อน +1

      Me either, though the tide is slowly turning. Glad you enjoyed it!

  • @IainSimmons
    @IainSimmons 3 หลายเดือนก่อน

    Great way to round out the series! I know you've almost certainly mentioned this elsewhere, but some people may not realise how awesome it is that this could even be used inside another JS framework, or could be used to have multiple web components trigger events on each other. Or obviously just with a little extra vanilla JS when that's all you need!
    As many have said, this is really how web components should be taught, and then only much later actually introduce the Shadow DOM as an advanced concept with specific use cases that most of the time you don't need.
    I'm a little sad that your series is finished, but otherwise still look forward to your next video on whatever that might be about.

    • @gomakethings
      @gomakethings  3 หลายเดือนก่อน

      So glad you enjoyed it! Anything you'd like me to cover next?

  • @erickjfranco
    @erickjfranco 3 หลายเดือนก่อน

    Excellent series, a series with workers would be a good idea 👍

    • @gomakethings
      @gomakethings  3 หลายเดือนก่อน

      Service workers, or workers more generally?