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.
Leave a Reply