Then, we’ll follow that up with a discussion of custom elements and shadow DOM. I’m curious as to why you chose to feature HTML Imports in this article. Web components allow for reusability and the ability to associate JS behaviour with your markup. I finally understand what the shadow dom is. on CodePen. I’ll look into getting it updated. Dynamic HTML and CSS rendering in Lightning Web Components (LWC) for Desktop and Mobile LWC has different lifecycle hooks which are essentially are callback methods triggered at a specific phase of a component instance’s lifecycle. I made a fancy new Gutenberg block to insert posts into other posts, so this page is an example of using that (heavily) make a meta blog post about other blog posts. Generally, any content inside of the document’s scope is referred to as the light DOM, and anything inside a shadow root is referred to as the shadow DOM. CSS custom properties are ubiquitous and a relatively new technology, called Web Components, has landed in all modern browsers. When combined with a style guide, web components can create a component API, which allows developers to stop copying and … Web Components will likely work natively in all browsers sometime in 2016. As developers, we all know that reusing code as much as possible is a good idea. Using this element you can place a video with just a few of lines of code, for example: You may only be seeing a few lines of HTML above, but here's what the