Web Components: It’s about Time
summary
Builds a working social-post web component (no build system, just vanilla JS) that includes an emoji picker child component, uses custom elements and shadow DOM with slots and CSS custom properties, and demonstrates attribute lifecycle, property setters/getters, dispatching composed custom events, and observedAttributes. Live coding shows data loaded after a timeout, bubbling vs composed behavior, and that polyfills cover most browsers except IE11; mentions tooling options like lit-html lit-element stencil polymer and angular elements.
AI-written summary · about
chapters (20)
- 0:00Introduction to web components
- 1:43Native vs framework components
- 3:40Use cases for web components
- 4:53Web component specifications
- 6:12Project demo overview
- 7:01Creating a custom element
- 9:05Shadow DOM encapsulation
- 10:22Styling the component
- 11:56Passing data with attributes
- 13:35Using slots for content
- 16:13Building an emoji picker
- 18:09Styling the child component
- 19:21Adding interactivity
- 22:17Component communication
- 25:45Managing internal state
- 27:03Simulating API calls
- 29:31Attribute change handling
- 31:15Creating a property API
- 33:20Component API design
- 34:46Libraries and Q&A
related talks
40mWeb Components: It’s about Time
51mBuilding web applications with Web Components
46mWhat ever happened with Web Components?
36mThe State of Web Components
59m2018 - The Year of Web Components
45mLet's Talk About Web Components
21mThe Year of Web Components
36mWeb components - A whirlwind tour thru the future of the web
