Learn Web Components In 25 Minutes

Learn Web Components In 25 Minutes

Web Dev Simplified

1 год назад

193,387 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@airpancho
@airpancho - 10.01.2024 12:30

Note that Safari does NOT support customized built-in elements (is="").

Great video - love web components (which actually already exists for like 10+ years) and their reusability. I believe that this is the future. I got tired of new / changing frameworks and you don't always need a JS framework.

Also for everyone who doesn't like to write HTML in JS, you can still wrap the HTML in your custom tag, like it is shown with the default slot. That way you can e.g. use your server side rendered translations or just put everything into a partial, to be able to reuse it.

Ответить
@user-mu4pq6ls8y
@user-mu4pq6ls8y - 09.01.2024 10:22

Do you have video for advance concepts in web component

Ответить
@TheGameMakeGuy
@TheGameMakeGuy - 05.01.2024 18:01

You just shouldnt use style and use inline style instead and this is basically a html element so it should be stylable by the outside

Ответить
@faithmorante
@faithmorante - 01.01.2024 06:32

I'm implementing an Infinite scroll from scratch, without any JS frameworks, thought of using native apis just like web components. Thanks for this tutorial! I get it more now :)

Ответить
@alivenumber5
@alivenumber5 - 27.12.2023 03:21

Does this javascript have to be shipped out to the browser or is the underlying DOM composed finally of "standard" HTML? I ask this because it has implications on server side rendering versus sending pages as a more front-end heavy single page app.

Ответить
@user-ui5uu8ps4b
@user-ui5uu8ps4b - 25.12.2023 16:50

This is gold. These web components are being used in Lightning Web Components in Salesforce

Ответить
@giannismentz3570
@giannismentz3570 - 19.12.2023 00:56

Absolutely agree with the thumbnail. When I first heard of web frameworks, I delved a bit into React and Vue. They are the most popular and they have so many goodies for them, as well as good documentation. I quickly realised, they are not exactly frameworks, the way they are built, they are like a totally new language paradigm, they prevent you from using JS and web APIs, or any other web standards, you can only do stuff their way. That's not a framework really, that's like a restrictive layer on top of the web, and a bossy one at that. It's their way only. If React can't do it, you can't either. You can't just use JS, you'd have to wait for future "features". And that's not gonna fly with the speed the web is advancing, or with the upcoming technologies, like WASM etc. In fact, I predict all those "frameworks" like React are gonna die the moment WASM becomes usable and stable. Anyway, good web frameworks are probably those that help you using abstractions, while they still allow you to use JS and any other web API or tech you want, they do not get in your way, and they themselves are based on web tech without braking any standard. I think frameworks like Lit, Stencil, or similar, using web components etc are the good ones. React and Vue redefined what web components are, and they even went further reinventing their own virtual DOM, when a shadow DOM already exists as a web standard. If you don't like web components, there are a few other minimal ones like Alpine or HTMX using different techniques that also don't get in your way. React sucks people, don't use it, don't invest on it, it's gonna die. The only people who would end up still using it are those who invested too much into it and are locked in.

Ответить
@OnderAkbulut
@OnderAkbulut - 09.12.2023 11:08

web componets very cool but I see layot shifts How can I fix thats eg. slider

Ответить
@PaulAllsopp
@PaulAllsopp - 07.12.2023 11:37

React is not a framework, it's just a library.

Ответить
@focus1401
@focus1401 - 05.12.2023 19:13

web components sucks

Ответить
@ascourter
@ascourter - 01.12.2023 03:10

Great overview! I feel like I understand the shadowDOM a lot better now.

Ответить
@JordanicusRex
@JordanicusRex - 27.11.2023 01:29

When I was at a full-stack bootcamp, one of my teachers who was a real smart guy from MIT was basically trashing on React. He said that web components and things like the shadow DOM already make your website fast, and that React was unnecessary for this (granted he still had to teach it to us). Ever since then, I've been super curious to see if it's really true. I wonder if someone can make two identical sites with React vs. Web Components & Shadow DOm, and see which ones faster.

Ответить
@zool201975
@zool201975 - 18.11.2023 16:37

very useful, one thing needs to be said though.
is not to add any attributes or content to the element in the constructor,
this will cause errors
use connectedCallback for this.

Ответить
@thainguyenvan8437
@thainguyenvan8437 - 13.11.2023 16:21

Thanks for the good website hosting knowledge! Ive experienced GoDady and HostGator, however Cloudways with TST20 couppon is the best money saver.

Ответить
@mohammadalaaelghamry8010
@mohammadalaaelghamry8010 - 13.11.2023 08:54

Great video, thank you

Ответить
@agnanov
@agnanov - 31.10.2023 13:47

Because React is too bloated and web components are often enough, Lego JS came out. We've been using it for years now and it solved ALL our issues (easy to maintain, native -> fully compatible, no learning curve).
It give the web component the little extra skin to update, use conditions and loops for display. That's pretty much everything we need when developing even massive apps.

Ответить
@abhijeetprabhu4117
@abhijeetprabhu4117 - 28.10.2023 09:52

Nice video. Thanks for making these.

Ответить
@ErickPereziChido
@ErickPereziChido - 16.10.2023 21:40

Great tutorial on Web Components. Thank you!

Ответить
@lukaslipkens9167
@lukaslipkens9167 - 13.10.2023 16:29

you talk a little bit to fast i think

Ответить
@winzyl9546
@winzyl9546 - 10.10.2023 07:42

nice hair

Ответить
@MrVipulLal
@MrVipulLal - 01.10.2023 00:26

All your videos are simply brilliant. Love your channel.

Ответить
@clnguye
@clnguye - 29.08.2023 17:48

Unbelievable content! Kyle has way of making complex concepts clear.

Ответить
@coffeeandbytes9854
@coffeeandbytes9854 - 03.08.2023 14:12

Speaks too fast, rushes through concepts, doesn't actually focus on the concept at-hand in each chapter, and doesn't give you enough time and guidance to fully understand what he's talking about. Maybe if he gave himself more than 25 minutes he wouldn't rush through it all and we might actually get some useful information from this video...

Ответить
@bmirador
@bmirador - 02.08.2023 03:55

Really good content. Holy hell Javascript is such a shit show.

Ответить
@seanpaulson9098
@seanpaulson9098 - 14.07.2023 01:00

Cool now just let me create a react like framework with this

Ответить
@fluxacadmey5836
@fluxacadmey5836 - 03.07.2023 17:40

👎🏻 for clickbait

Ответить
@shashankbhatt6342
@shashankbhatt6342 - 26.06.2023 07:45

Very Nice informative video my friend.

Ответить
@EmranAhmed08
@EmranAhmed08 - 09.06.2023 15:54

Web Components + Zustand = ❤

Ответить
@AndrewLapteff
@AndrewLapteff - 01.06.2023 16:19

Дякую!

Ответить
@prateekbhardwaj9943
@prateekbhardwaj9943 - 23.05.2023 08:53

which keyboard you are using?

Ответить
@yolkyhorizon
@yolkyhorizon - 14.05.2023 15:52

React is overcomplicated and this provides the control I want. this is super cool

edit: I am never touching React again

Ответить
@MatthewM770
@MatthewM770 - 05.05.2023 11:24

This guy is the Andrew Kramer of the coding world. Clear, concise and explains the things that people may commonly not know.

Ответить
@dazraf
@dazraf - 16.04.2023 00:54

Great video thanks! I've been using web components for the past three years and I absolutely love them.Much easier to work with than React. I'm never going back.

Ответить
@Schnitzeeeeeel
@Schnitzeeeeeel - 14.04.2023 20:20

tooooooooooooooop

Ответить
@user-cl3gh9yi8f
@user-cl3gh9yi8f - 16.03.2023 21:09

hi is there a way to map the shadow dom using Array?

Ответить
@ayushkushwaha171
@ayushkushwaha171 - 15.03.2023 14:34

My company uses them heavily, they moved from angular to web components and made their own library, it's still new to many new joiners coming from react/angular background, it's like a new playground for us but its fun, we get to learn more core stuff about javascript and browsers.

Ответить
@sherifbadawy8188
@sherifbadawy8188 - 10.03.2023 16:14

You can learn typing in 4 days of 45 mins a day, I took your great React course but typing mistakes ruins it, I think a basic typing tutor software for 4 days, and you are good for life. friendly advise to a great teacher. thank you

Ответить
@MrTiulia
@MrTiulia - 26.02.2023 06:41

Great video, learned a lot, just small note, that it is a bit dirty to put a list into a list instead to put a list into a list item if you want a nested list

Ответить
@over1498
@over1498 - 22.02.2023 17:51

React fanboys are so whiny lol. Who cares about the thumbnail read the dang title.

Also they’re a bit sensitive because they know the end of React is near… might not be simple web components that kills it, but something will sooner than later

Ответить
@oscarlagatta
@oscarlagatta - 22.02.2023 13:47

The only think can overtake react is qwik

Ответить
@JulienReszka
@JulienReszka - 18.02.2023 21:30

laughs in vue.js

Ответить
@10minutesofASMR
@10minutesofASMR - 18.02.2023 15:48

i wont remember you tommorow, because all this Todo and list manipulation i can you my way and you did 0 real life examples, so why i have to remember this ...

Ответить
@AhmadMaartmesrini
@AhmadMaartmesrini - 17.02.2023 00:54

Man respect your audience feeling!
End of react, I just started learning it 😂

Ответить
@raphaelmachado7197
@raphaelmachado7197 - 16.02.2023 09:47

Bro i love your videos, they help me a lot. For me you have the best web dev channel. But this video i had to click on dislike

Ответить
@babayaga6172
@babayaga6172 - 14.02.2023 08:29

Greeting Sir! Hopefully you are doing well!
I am waiting for nginx crash course & integration with mern stack application
who wants this?

Ответить
@phdz9390
@phdz9390 - 13.02.2023 19:14

Lesson of this video :
Web component are very verbose.
React abstracts all this verbosity.
No it's not the end of React.

Ответить
@IAmOxidised7525
@IAmOxidised7525 - 13.02.2023 17:15

Really informative, thanks

Ответить
@aezakmi2918
@aezakmi2918 - 11.02.2023 17:46

Dont use cringe clickbaits please

Ответить