I'm building a React widget where I don't control the environment. I want to make sure that no css bleeds into my widget. Instead of delviering my component as a web component I though of the underlying shadow dom standard to render react directly into a shadow dom (together with any styles emitted from styled components).
Works pretty good. Idea is from https://www.wpeform.io/blog/render-react-app-shadow-dom-styled-components/ which I found while searching for some prior art of this approach.