Web Components API – this is for real!

A presentation at Bilbostack 2019 in in Bilbao, Biscay, Spain by Belén Albeza

Web Components API (this is for real!)

Web Components API (this is for real!)

A tale as old as time

A tale as old as time

A common need

A common need

What JS frameworks do

What JS frameworks do

Web Components API

Web Components API

API support in browsers

API support in browsers

Custom Elements

Custom Elements

Shadow DOM

Shadow DOM

JS framework vs Web Component

JS framework vs Web Component

DevTools + Web Components

DevTools + Web Components

Demo: A simple component

Demo: A simple component

<template>

<template>

Demo &lt;template&gt;

Demo <template>

Shadow DOM encapsulation

Shadow DOM encapsulation

&lt;slot&gt;

<slot>

Demo &lt;slot&gt;

Demo <slot>

Custom attributes

Custom attributes

Demo: custom attributes

Demo: custom attributes

What about CSS?

What about CSS?

Demo CSS

Demo CSS

Recap: pros of Web Components

Recap: pros of Web Components

JS Frameworks have many features

JS Frameworks have many features

So what’s the point?

So what’s the point?

Some JS Frameworks already support Web Components

Some JS Frameworks already support Web Components

Web Components made with Vue

Web Components made with Vue

Demo: a Web Component made with Vue

Demo: a Web Component made with Vue

Demos + repo

Demos + repo

Thanks! Questions?

Thanks! Questions?

Resources

The following resources were mentioned during the presentation or are useful additional information.

  • Demos

    Github repository with the demos and examples

Buzz and feedback

Here’s what was said about this presentation on social media.