Modern Lit tutorial

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

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

  • @marcelapetroli7042
    @marcelapetroli7042 Год назад +4

    Best video I've seen about introduction to Lit! The way you explain is amazing, simple and straight to the point :D Hope your channel keeps growing! We need your content 😀

    • @JadJoubran
      @JadJoubran  Год назад

      Thank you so much Marcela! I'm currently setting up my new RUclips studio so I can record more videos!

  • @HosseinOjvar
    @HosseinOjvar Год назад +1

    Such a lovely cat ;)
    Thanks for this introduction

  • @thomas-gk9jp
    @thomas-gk9jp 2 года назад +5

    The nicest thing, for me, is that i'm currently following your JS course (at the 40 something lesson, DOM etc.) and i understood all without any major problems, thank you Jad ^^

    • @JadJoubran
      @JadJoubran  2 года назад +1

      Awesome, thank you so much! Enjoy the rest of the course :D

    • @thomas-gk9jp
      @thomas-gk9jp 2 года назад

      @@JadJoubran 🙌🏻

  • @jediampm
    @jediampm 2 года назад +1

    Hi, thanks for the video,
    About the counter example, you dont need the requestUpdate method, i recommend you to read lit docs, on Events section where you will find a counter example. ;)

  • @filipesoares2827
    @filipesoares2827 Год назад

    Thank's Man, nice video!

  • @ElliottMarquez
    @ElliottMarquez 2 года назад +2

    Just a heads up in the JS version of Lit, the equivalent of `@state` is:
    class MyCounter extends LitElement {
    static properties = { value: {state: true}};
    handleIncrement() {
    this.value += 1;
    }

  • @wesleymouedineassaby1035
    @wesleymouedineassaby1035 2 года назад +2

    Your JS course is awesome, you ve really a talent to explain things, I ve purchased also your React course, but this framework is really discouraging. I will try Lit for sure! Merci Jad! Your video is perfect 🤙🤩🥤😀

    • @JadJoubran
      @JadJoubran  2 года назад +1

      Thanks! Yes indeed React is quite complicated unfortunately

  • @ajgubi19
    @ajgubi19 2 года назад

    Nice pace! Thanks a lot.

  • @shubhamrozers
    @shubhamrozers 2 года назад

    I really love your javascript course ❤️❤️❤️

  • @likelyja
    @likelyja 11 месяцев назад

    Have you worked with LIT + Accessibility and how to work with Shadow? We have used Stencil and had issues with shadow and accessing ID's for aria and other accessibility challenges.
    Do you know of any good resources or tips on how Lion was able to work with Shadow and be accessible? Any tips would be greatly appreciated.
    Your video was a nice intro to LIT. We are looking to switch from Stencil to LIT. Stencil offers shadow being on or off but my understanding it LIT is just shadow.

    • @JadJoubran
      @JadJoubran  11 месяцев назад

      If you're facing issues with other frameworks, I suspect they will be same with Lit because the problem is the shadow DOM and not the framework/library...
      I've heard that many developers have decided to drop using the shadow DOM (that's something you can easily do with Lit but you won't enjoy the consistency of shadow dom especially with regards to styling)..
      Have you checked #2 here nolanlawson.com/2022/11/28/shadow-dom-and-accessibility-the-trouble-with-aria/ and alice.pages.igalia.com/blog/how-shadow-dom-and-accessibility-are-in-conflict/ ?

  • @ΒινςΜοργκαν
    @ΒινςΜοργκαν 2 года назад +2

    the video finished and all i remember is your cat :D

  • @dominikhlusiak6547
    @dominikhlusiak6547 2 года назад

    Wonderful introduction, thanks!

  • @thematthewyoung
    @thematthewyoung Год назад

    hey man. do you have any info or idea how to pass in parameters to a method that you use on the @click event binding?

    • @JadJoubran
      @JadJoubran  Год назад

      You can define an arrow function: @click={event => someFunction(event, someOtherArgument)}

  • @michaels6446
    @michaels6446 2 года назад +1

    Hey Jad, very nice introduction! And great that you mentioned the common challenges with lit & web components. I liked your idea on building on top of an existing library like ing/lion, but for a beginner, it's kind of overwhelming. Could you show how you integrate and customize some of the elements provided there?

    • @JadJoubran
      @JadJoubran  2 года назад

      Thank you! I haven't used it myself though but maybe one day!

  • @mike_mad2803
    @mike_mad2803 Год назад

    Came for the tutorial. stayed for the mischievous orange kitty

  • @segfaultii
    @segfaultii 2 года назад +1

    What ALL tutorials I've looked at for LitElement and Lit do not explain well is the build step, and how to use the built output in another tech stack. Lit and stencil both are guilty of this. I've built with both and was stuck with both on how to integrate my work in my colleagues code. Lit docs just throws a wall of configuration at you while Stencil just shows their output targets. But how to actually use that in another microservice is anyones guess.

    • @JadJoubran
      @JadJoubran  2 года назад

      For Lit: you need to import the Lit library and that's it. They're web components so the browser does the rest. If you're using TS, you need to compile TS to JS.

  • @shubhamseth4472
    @shubhamseth4472 2 года назад +1

    Can you tell why did you choose Lit over stencil ?

    • @JadJoubran
      @JadJoubran  2 года назад

      Not sure.. but I'm not a huge fan of JSX, I also like that there's barely any build-step for Lit. But these are all just personal reasons, stencil is probably also a great choice (I've used it indirectly via ionic).

  • @geek_24
    @geek_24 2 месяца назад

    Beautiful Car

  • @srikanthj8085
    @srikanthj8085 2 года назад

    Hi @Jad Joubran, could you help me to get any books available to learn LIT in advanced level?

    • @JadJoubran
      @JadJoubran  2 года назад

      Hey! I don't know any Lit books unfortunately. The official docs are pretty good though!

    • @srikanthj8085
      @srikanthj8085 2 года назад

      thanks @@JadJoubran for the reply . Could you help me best way to pass data from parent component to nth child component ? don't want to pass all parent components to the nth child. Could you shoot me some help documents ?

    • @JadJoubran
      @JadJoubran  2 года назад +1

      @@srikanthj8085 You can use something like redux or other state management library or fire an event (though usually events are used on the way up)
      You won't find anything Lit specific which is why you can look at state management libraries in general

    • @srikanthj8085
      @srikanthj8085 2 года назад

      @@JadJoubran thank you.

  • @lekka333
    @lekka333 2 года назад

    Nice one Jad!

  • @aj_shela
    @aj_shela 2 года назад

    how to start building this locally?

  • @koruki
    @koruki 2 года назад

    hi the object syntax at 19:20 doesnt work for me, it works for string but not object, any more info or documentation?

    • @JadJoubran
      @JadJoubran  2 года назад

      lit.dev/docs/templates/expressions/

    • @JadJoubran
      @JadJoubran  2 года назад

      You need to define the properties = {...} too

  • @marcomarek7734
    @marcomarek7734 2 года назад

    Ahaha never seen tutorials with cats intervening. Cute

  • @mharding7
    @mharding7 2 года назад

    Could you say more about how to use Tailwind with Lit?

    • @JadJoubran
      @JadJoubran  2 года назад +1

      I haven't used it myself with Lit but there seems to be some articles explaining some approaches

  • @777shacob8
    @777shacob8 2 года назад

    New Jad upload 🙃

  • @yanaung7630
    @yanaung7630 2 года назад

    tahnk you sir, what do you think of stencil compared to lit 2.0? Btw I love the cattttt

    • @JadJoubran
      @JadJoubran  2 года назад

      Thanks! I answered that question in the comments, check it out below

  • @TravelingTice
    @TravelingTice 2 года назад

    Gijsje 😍😍

  • @charlesmadureira5125
    @charlesmadureira5125 2 года назад

    👏🚀🎊