Web Components are for Progressive Enhancement

Dustin Boston ·

HTML Web Components

Rather than an empty “shell component” that takes data and (using JavaScript exclusively) renders the entirety of its contents, web components encourage an approach of composing core content with HTML and then wrapping it in a custom element that enhances its contents with additional functionality.

This perspective highlights how the web uses progressive enhancement by default. It can also make your web components much smaller.

Comments

Leave a comment

No comments yet. Be the first to share your thoughts!

Mentions

No mentions yet — link to this post from your site using Webmention and it will show up here.