Skip to content
micro-frontend.dev 2.0

Micro-frontends and Web Platform APIs

Author: Natalia Venditto

Date First Published: Wed Jan 04 2023

Micro-frontends and custom elements

Sticking to browser native APIs supposes a lot of benefits in terms of maintenance and compatibility.

When we use an HTML-first approach, we want to leverage native HTML elements, and only use additional JavaScript to enhance them, when strictly necessary. As you can imagine, custom elements -meaning, elements we come up with to fulfill a feature requirement- are the perfect way to accomplish this goal, also known as progressive enhancement.