How do I make a web component that can hold any HTML and keep it to itself with Shadow DOM?
I need to create a custom component which would wrap some piece of html which will have a element and external library which would create inside the element.
so that I can encapsulate it in a shadow dom, not let the website styles impact the wrapped html ??
primary goal is to encapsulte the html, we just thought web component is the best bet.
1 Reply
I don’t understand the question? It seems like the answer is just “make a web component”