Build Your Own Blog Portfolio with Web Components: The Basics
Part 1 — Custom elements, Shadow DOM, and HTML Templates
9 min readSep 13, 2021
As developers, we all know that we should reuse code as much as possible. Duplicated code is one of the main causes for software bugs, and it is essential to avoid it. Web Components help us to create reusable markup structures with encapsulated functionality.