Over the last few pages, we started to explore the Shadow DOM API and how we might use it to encapsulate code into a feature or component. We created a couple of simple examples and covered some of the terms and functions available for use in this API.
This is all good, but what about using it in a practical context? The best way to do this is by writing components (or features) – while this book is about the Shadow DOM API, it forms the basis for creating web components, such as those offered in the ...