Welcome to Elm - 6.5 Web Components

Поделиться
HTML-код
  • Опубликовано: 23 июн 2024
  • Learn how web components allow you to embed JavaScript in Elm

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

  • @finnpedersen9342
    @finnpedersen9342 17 дней назад

    😂😂😂 So funny. This is exactly why JavaScript and I are not so good friends and why I got started on Elm in the first place.

  • @maxreuv
    @maxreuv Месяц назад +1

    Seems like integrating with anything JS is a bit of a hands full, whether through ports or web components

    • @HeyRyanHaskell
      @HeyRyanHaskell  Месяц назад +4

      Definitely! This is a very common reason why folks prefer working with other languages in the web space.
      With Elm, you get the guarantee that your type system works BUT it comes at the cost of needing to be more cautious when working with raw JS or JSON values.
      For my personal experience, this tradeoff is worthwhile- but using a language with an "any" type has more ergonomic benefits.
      I encourage folks to try both and see which style they prefer!