It took a while to wrap my head around the shadow DOM. It wasn’t until I had to use Lightning Web Components and LitJS for work that I finally started to understand the shadow DOM. For those unaware, LWC and LitJS are both thin wrappers over native web components.
It took a while to wrap my head around the shadow DOM. It wasn’t until I had to use Lightning Web Components and LitJS for work that I finally started to understand the shadow DOM. For those unaware, LWC and LitJS are both thin wrappers over native web components.