Are web components dead or just getting started?

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

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

  • @naeembilal
    @naeembilal ปีที่แล้ว +5

    I have seen React apps, and it is pushing towards frontend Monolithic with confused client and server side rendring. Web components provide huge power, speed, and open architecture, which makes it a future candidate of Micro frontend.

  • @Azurryu
    @Azurryu ปีที่แล้ว +9

    Whenever I hear that web components are lacking or pointless if there are frameworks like React, it blows my mind. Web development isn't limitied to throwing all kinds of heavy libraries on your own platform: We're building content that can be used as ads or included as regular imteractive content anywhere on any website, so we're limited in which and how many ressources we can use. Because web component are native and don't require a backend or a heavy library or compiled JS, they're often the best solution to include our pieces without causing any conflicts on a website (we might not even know on which websites our service will be used).

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

      Agree, but if you're talking about ads, let's be honest. All the bots, trackers, heatmaps, cookie consents, oauths and ad scripts are much heavier than frontend framework loaded into the browser, that weights maybe 200 kb

  • @grimwaltzman
    @grimwaltzman 10 หลายเดือนก่อน +2

    The last two fairly big commercial projects I worked on asked me to switch their existing code base to Web Components. So it's probably the latter.

    • @wchorski
      @wchorski 4 หลายเดือนก่อน

      how is it going so far? I see these WC frameworks like Lit and WebC bridging the gap but doesn't that defeat the purpose of moving away from all these frameworks?

  • @Human_Evolution-
    @Human_Evolution- ปีที่แล้ว +1

    Can we use functions rather than classes for creating custom elements? I'm not a huge fan of classes.

    • @MarkVolkmann
      @MarkVolkmann 11 หลายเดือนก่อน

      No. Web components must be defined by a class.

    • @Human_Evolution-
      @Human_Evolution- 11 หลายเดือนก่อน

      @@MarkVolkmann either you are wrong or ChatGPT is wrong. It states you can and gives the code. Too busy with another project to verify, but I think functions likely work

    • @JLarky
      @JLarky 4 หลายเดือนก่อน

      No, you can use functional style wrappers like atomico or solid-element but they will be creating a class for you anyway :)

  • @RichieRicardo801
    @RichieRicardo801 2 ปีที่แล้ว +1

    Interesting. Thanks for reminding me about these. For my current app I need all the performance bonuses I can get, so the gains there would be the main draw card. My other considerations would be a solid UI library, a thriving community, and some sort of store (like vuex).

  • @stefanitotokocopullo2739
    @stefanitotokocopullo2739 2 ปีที่แล้ว

    Nice video. Learned lots of new things. Thank you.

  • @penio78
    @penio78 9 หลายเดือนก่อน

    Web components, are very well suited to migrate legacy projects as they allow incremental migration of the UI. With React, this would be much harder to achieve

  • @Holobrine
    @Holobrine 10 หลายเดือนก่อน

    Just getting started, if you ask me. I’m starting a project with them as we speak

  • @2002budokan
    @2002budokan ปีที่แล้ว

    Very clear explaination and clear separation of API's that web components based on. Although I have already written some web components, I had not thought before that these are different APIs. In this respect, it is a very valuable video for me, thank you.