How to mount styles inside shadow root using cssinjs/jss
I'm trying to use https://material-ui.com/ components inside shadow dom, and need a way to inject those styles inside shadow dom. by default material-ui , which uses jss under the hood injects styles in the head of the page. Is that even possible? Can anyone come with an example? This is what my web component looks like, it is a web component that renders a react app that contains material-ui styles. import * as React from 'react'; import { render } from 'react-dom'; import { StylesProvider, jssPreset } from '@material-ui/styles'; import { create } from 'jss'; import { App } from '@myApp/core'