A Complete Introduction to Web Components

preview_player
Показать описание
Want to better understand web components and how they work? ✅ Click play to dive in ⬆️

We all have projects we’d instead not work on. The code has become unmanageable, the scope evolved, quick fixes applied on top of other fixes, and the structure collapsed under its weight of spaghetti code. Coding can be a messy business.

Projects benefit from using simple, independent modules which have a single responsibility. Modular code is encapsulated, so there’s less need to worry about the implementation. As long as you know what a module will output when given a set of inputs, you don’t necessarily need to understand how it achieved that goal.

Applying modular concepts to a single programming language is straightforward, but web development requires a diverse mix of technologies. Browsers parse HTML, CSS, and JavaScript to render the page’s content, styles, and functionality.

Tune in to learn an in-depth introduction to web components! ▶️

ℹ️ About Kinsta
Kinsta is a premium managed WordPress hosting company powered by Google Cloud Platform’s premium tier network and compute-optimized C2 virtual machines, enterprise-level security, a free CDN global edge network with 200+ PoPs, and 24/7/365 support.

👤Follow us:

__________________________

🕘Timestamps

0:00 Intro
0:40 Getting Started With Web Components
1:50 Adding Attributes
2:47 Lifecycle Methods
3:34 How Web Components Interact With Other Elements
4:52 HTML Templates
5:50 Template Slots
7:07 The Declarative Shadow DOM
7:44 Shadow DOM Events
8:01 Using Web Components in Other Frameworks
8:44 Web Component Criticisms and Issues
9:48 Ignored Inputs

_________________________

📚 Resources

⚙️ A Complete Introduction to Web Components in 2022

#WebComponents
Рекомендации по теме
Комментарии
Автор

I'm really impressed with Web Components, encapsulation, templates, and slots work just like Vue or Svelte, the possibility to use named slots is the best part for me, also, I like to use Svelte, and using it you can create custom elements with easy

DanielRios
Автор

I was trying to implement a pure CSS tabbed frame web component with labels and radio buttons, then I discovered that it completely ignored the radio group. I still believe there is a way to do this, but I feel like I need to learn much more about components before moving forward.

bradweir
Автор

Great video! Any idea how one could securely inject an api key into a web complement?

intheband