Course Information
Course Overview
Learn web components api of custom elements, shadow dom and templates
Web applications are evolving and frameworks like react, vue, angular, svelte and others, are bringing functionalities like reusable components to make it easier to create huge applications. With web components we can create our custom html elements, just like we do in the other popular web frameworks. But the difference is, web components api is web standard, which means it's coming with the modern browsers. So without requiring additional build process or any other tooling, we can run our code as it is in the browser. All we need is just vanilla javascript knowledge.
Web components has three main APIs. Custom Elements, Shadow DOM and HTML Templates. And in this course we will learn and practice all.
We will learn how we can built custom elements, how we can extend built-in elements. Also we will practice the "template" to make the rendering of our custom element more efficiently.
We are going to practice the Shadow Dom to see it's role in web components. We will see how we can compose our custom element with the markup provided externally. And also we will see our styling options of our elements.
And finally, we will practice, how the events are changed in shadow dom. We will see the issues and we will introduce our solutions.
If you want to build re usable web components without relying onto a third party library, if you want to build applications based on the web standards, then web components is the answer.
Course Content
- 6 section(s)
- 25 lecture(s)
- Section 1 Intro
- Section 2 Custom Elements
- Section 3 Template and Modules
- Section 4 Shadow DOM
- Section 5 Events
- Section 6 Register Form - Demo
What You’ll Learn
- Web Components API
- Create your own custom elements, use them in html like the built in elements
- Use templates to create the structure of your elements
- Use shadow dom to encapsulate your element
- Use slot for composing your custom elements with different elements
- Create custom events
Reviews
-
RRoman Mukhin
Compact and practical, covers the basics of web components, though it can feel a bit chaotic.”
-
FFrancisco Chardin
Very clear, also provided examples of different use cases. Repeated concepts to help memorization and given helpful content.
-
GGopinath Prasanna
Should have covered more on web components architecture.
-
BBruno Andres Preti Picos
It's very useful to start learning Web Components and know what they are and how they work.