Comment Comment by lpedrosa You are correct. You don't have to use the shadow DOM, when you create a new Custom Element.The shadow DOM provides two things:- style encapsulation (as well as `id` attributes)- ability to use `<slot>` for templatingYou should use it if you require one of the above or both. parent lpedrosa 3 years ago
The shadow DOM provides two things:
- style encapsulation (as well as `id` attributes)
- ability to use `<slot>` for templating
You should use it if you require one of the above or both.