Modern Lit tutorial

  Рет қаралды 13,993

Jad Joubran

Jad Joubran

Күн бұрын

Пікірлер: 51
@marcelapetroli7042
@marcelapetroli7042 Жыл бұрын
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 KZbin studio so I can record more videos!
@HosseinOjvar
@HosseinOjvar Жыл бұрын
Such a lovely cat ;) Thanks for this introduction
@thomas-gk9jp
@thomas-gk9jp 2 жыл бұрын
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 жыл бұрын
Awesome, thank you so much! Enjoy the rest of the course :D
@thomas-gk9jp
@thomas-gk9jp 2 жыл бұрын
@@JadJoubran 🙌🏻
@jediampm
@jediampm 2 жыл бұрын
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. ;)
@ElliottMarquez
@ElliottMarquez 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; }
@JadJoubran
@JadJoubran 2 жыл бұрын
Thanks Elliott!
@filipesoares2827
@filipesoares2827 Жыл бұрын
Thank's Man, nice video!
@likelyja
@likelyja Жыл бұрын
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 Жыл бұрын
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/ ?
@ajgubi19
@ajgubi19 2 жыл бұрын
Nice pace! Thanks a lot.
@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
@wesleymouedineassaby1035
@wesleymouedineassaby1035 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 жыл бұрын
Thanks! Yes indeed React is quite complicated unfortunately
@dominikhlusiak6547
@dominikhlusiak6547 2 жыл бұрын
Wonderful introduction, thanks!
@JadJoubran
@JadJoubran 2 жыл бұрын
:D
@michaels6446
@michaels6446 2 жыл бұрын
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!
@shubhamseth4472
@shubhamseth4472 2 жыл бұрын
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).
@shubhamrozers
@shubhamrozers 2 жыл бұрын
I really love your javascript course ❤️❤️❤️
@JadJoubran
@JadJoubran 2 жыл бұрын
Thank you! :D
@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)}
@segfaultii
@segfaultii 2 жыл бұрын
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.
@aj_shela
@aj_shela 2 жыл бұрын
how to start building this locally?
@lekka333
@lekka333 2 жыл бұрын
Nice one Jad!
@JadJoubran
@JadJoubran 2 жыл бұрын
Thanks Paul!
@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 жыл бұрын
@@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.
@ΒινςΜοργκαν
@ΒινςΜοργκαν 2 жыл бұрын
the video finished and all i remember is your cat :D
@JadJoubran
@JadJoubran 2 жыл бұрын
Hahaha that's great!
@mharding7
@mharding7 2 жыл бұрын
Could you say more about how to use Tailwind with Lit?
@JadJoubran
@JadJoubran 2 жыл бұрын
I haven't used it myself with Lit but there seems to be some articles explaining some approaches
@geek_24
@geek_24 2 ай бұрын
Beautiful Car
@mike_mad2803
@mike_mad2803 Жыл бұрын
Came for the tutorial. stayed for the mischievous orange kitty
@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
@marcomarek7734
@marcomarek7734 2 жыл бұрын
Ahaha never seen tutorials with cats intervening. Cute
@777shacob8
@777shacob8 2 жыл бұрын
New Jad upload 🙃
@charlesmadureira5125
@charlesmadureira5125 2 жыл бұрын
👏🚀🎊
@JadJoubran
@JadJoubran 2 жыл бұрын
🐈🚀🥰
@TravelingTice
@TravelingTice 2 жыл бұрын
Gijsje 😍😍
Web Components An Introduction to the Future - Tobias Ljungstrom
43:51
How to build your first Lit component
11:59
Lit: Simple. Fast. Web Components.
Рет қаралды 38 М.
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 54 МЛН
Accompanying my daughter to practice dance is so annoying #funny #cute#comedy
00:17
Funny daughter's daily life
Рет қаралды 29 МЛН
Learn Lit and Web Components with Elliott Marquez
1:26:04
Kelvin Omereshone
Рет қаралды 4,2 М.
Designing Modern UI with Lit Web Components
9:59
GitKraken
Рет қаралды 1,9 М.
Build a Web Share API web component with Lit
13:54
Jad Joubran
Рет қаралды 1,7 М.
Introduction to Lit - Lit University (Basics)
12:58
Lit: Simple. Fast. Web Components.
Рет қаралды 17 М.
Intro to Webcomponents with LitElement
22:01
Filip Bruun Bech-Larsen
Рет қаралды 7 М.
Track your location with the JavaScript Geolocation API
17:55
Jad Joubran
Рет қаралды 43 М.
Introduction to Building Custom Web Components
13:02
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 32 М.
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН