DEV Community

Discussion on: Share Components across Front Ends frameworks using Nx and Web Components Part 2

Collapse
 
dannyengelman profile image
Danny Engelman

What is the deal with the exclamation mark in this.shadowRoot! everywhere?
Your shadowRoot is there, you just attached it in the previous line

Collapse
 
crocsx profile image
Federico Giacomini • Edited

Oh yes, they are not relevant to those example, I should have sorted them out. With some strict rules shadowRoot can return null and eslint would complain in some cases. Thank for the head up.