How to add Custom Events to Web Components

Поделиться
HTML-код
  • Опубликовано: 21 ноя 2024

Комментарии • 8

  • @stacherski
    @stacherski Месяц назад +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!

  • @CristianKirk
    @CristianKirk 29 дней назад

    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  28 дней назад +1

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

  • @IainSimmons
    @IainSimmons 29 дней назад

    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  28 дней назад

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

  • @erickjfranco
    @erickjfranco 29 дней назад

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

    • @gomakethings
      @gomakethings  28 дней назад

      Service workers, or workers more generally?