Web Components are for Progressive Enhancement

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 Reply

Your email address will not be published. Required fields are marked *