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 😀
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 ^^
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. ;)
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; }
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 🤙🤩🥤😀
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.
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/ ?
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?
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.
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.
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).
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 ?
@@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
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 😀
Thank you so much Marcela! I'm currently setting up my new RUclips studio so I can record more videos!
Such a lovely cat ;)
Thanks for this introduction
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 ^^
Awesome, thank you so much! Enjoy the rest of the course :D
@@JadJoubran 🙌🏻
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. ;)
Thank's Man, nice video!
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;
}
Thanks Elliott!
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 🤙🤩🥤😀
Thanks! Yes indeed React is quite complicated unfortunately
Nice pace! Thanks a lot.
I really love your javascript course ❤️❤️❤️
Thank you! :D
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.
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/ ?
the video finished and all i remember is your cat :D
Hahaha that's great!
Wonderful introduction, thanks!
:D
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?
You can define an arrow function: @click={event => someFunction(event, someOtherArgument)}
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?
Thank you! I haven't used it myself though but maybe one day!
Came for the tutorial. stayed for the mischievous orange kitty
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.
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.
Can you tell why did you choose Lit over stencil ?
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).
Beautiful Car
Hi @Jad Joubran, could you help me to get any books available to learn LIT in advanced level?
Hey! I don't know any Lit books unfortunately. The official docs are pretty good though!
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 ?
@@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
@@JadJoubran thank you.
Nice one Jad!
Thanks Paul!
how to start building this locally?
hi the object syntax at 19:20 doesnt work for me, it works for string but not object, any more info or documentation?
lit.dev/docs/templates/expressions/
You need to define the properties = {...} too
Ahaha never seen tutorials with cats intervening. Cute
Could you say more about how to use Tailwind with Lit?
I haven't used it myself with Lit but there seems to be some articles explaining some approaches
New Jad upload 🙃
tahnk you sir, what do you think of stencil compared to lit 2.0? Btw I love the cattttt
Thanks! I answered that question in the comments, check it out below
Gijsje 😍😍
👏🚀🎊
🐈🚀🥰