Mixins in JavaScript | Developer Quick Takes

Поділитися
Вставка
  • Опубліковано 20 лип 2024
  • Mixins allow you to dynamically use methods from another class without inheriting it, maintaining classes decoupled. Learn more about mixins in this new quick take from Alba Rivas.
    Connect with Salesforce Developers:
    Website: developer.salesforce.com/
    Facebook: / salesforcedevs
    Twitter: / salesforcedevs
    LinkedIn: / salesforce-developers
  • Наука та технологія

КОМЕНТАРІ • 18

  • @AlbaRivasSalesforce
    @AlbaRivasSalesforce 2 роки тому +3

    Take a look at an example of a custom LWC mixin --> github.com/albarivas/lwc-mixin-example

  • @eloyd
    @eloyd 2 роки тому +2

    It's easier when you explain it, Thanks Alba!

  • @goncalosilva5446
    @goncalosilva5446 2 роки тому +3

    Thank you Alba for this. Really nice explanation of the different possibilities and use cases of mixins

  • @absarahmad8455
    @absarahmad8455 2 роки тому +3

    Great Explanation. It's give us a brief knowledge about mixing in js and how we can use.

  • @JaimeBIDtravel
    @JaimeBIDtravel 2 роки тому +4

    Alba is the best! 👏

  • @AleRom
    @AleRom 9 місяців тому

    Thank you so much for your explanation, cheers from Argentina

  • @softwareengineeringandsale4005
    @softwareengineeringandsale4005 2 роки тому +1

    Great video. Thanks Alba.

  • @mattlacey5227
    @mattlacey5227 2 роки тому +1

    Great video Alba, nice one!

  • @Supernova12034
    @Supernova12034 Рік тому

    great video, explained wonderfully, thanks!

  • @ienriquinho
    @ienriquinho Рік тому +1

    I fail to understand how can this code be considered decoupled when there is use of extends? in class extends SuperClass snippet an inheritance relationship is already established isn't it?

  • @gauravkelkar8824
    @gauravkelkar8824 10 місяців тому +1

    Isnt this a more complex way to eventually create an inheritance chain, without explicitly stating so? Are there any benefits to this other than cleaner code?

    • @EJMP27
      @EJMP27 9 місяців тому

      I was asking myself the same

  • @_Alch3m1st_
    @_Alch3m1st_ 2 роки тому +1

    5 minutes very well spent, all I can say!

  • @omkardeokar
    @omkardeokar 2 роки тому

    Great Video!!
    Does that mean we can extend other components as well other than NavigationMixin with lightning element?
    🤔🤔

  • @alissonvinicius334
    @alissonvinicius334 Рік тому

    Bem crazy

  • @mehdi-vl5nn
    @mehdi-vl5nn 11 місяців тому

    it's misleading