Getting Started with Alpine.js

Поділитися
Вставка
  • Опубліковано 19 вер 2024

КОМЕНТАРІ • 11

  • @abulka
    @abulka 2 місяці тому

    Very clear tutorial of the basics, thanks.

  • @kimbapslayer1995
    @kimbapslayer1995 Рік тому +2

    Wow I'm so legit amazed by this. I am floored. Ill be offering this service to my freelance portfolio.

  • @laughingvampire7555
    @laughingvampire7555 2 місяці тому

    the best thing of these libraries is that we gain back the interactivity because we are back in JS, no need to compile TS/JSX

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

    Awesome , thu' I was waiting for how to search and delete items in the list lol.

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

      for search you can use .filter (const ages = [32, 33, 16, 40];
      const result = ages.filter(checkAdult);
      function checkAdult(age) {
      return age >= 18;
      })
      and for delete you can use .splice (const fruits = ["Banana", "Orange", "Apple", "Mango"];
      fruits.splice(2, 0, "Lemon", "Kiwi");)

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

    Only thing that throws me off is having empty values between tags lol. Too bad HTML requires closing tags unlike jsx that can have a self closing tag.

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

      True, but if it was self closing then you would confuse it to be a JSX component. This way you know it is vanilla HTML.

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

    1st and no... I'll stick with html and nothing more. That’s correct, no css nor Javascript.

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

      lol, what are you talking about> 🤣🤣🤣🤣

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

      @@RootsterAnon I was kidding lol. My jokes are beyond human comprehension.

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

      @@KevinArellano you don't understand how relieved I am right now. You got me there... I confess... :D