title: How to import styles into an iframe with create-react-app?
body: <p>I'm using CRA (create-react-app) to create a website. In this website, I use React.createPortal to inject a component into an iframe, like so:</p>
  
  <pre><code>ReactDOM.createPortal(
    &lt;SomeComponent /&gt;,
    this.iframeRef.current.contentDocument.body
  );
  </code></pre>
  
  <p>But the styles are obviously not passed down into the iframe. Like this: <a href="https://codesandbox.io/s/kk05rl6kpv" rel="nofollow noreferrer">https://codesandbox.io/s/kk05rl6kpv</a>.</p>
  
  <p>Any ideas on how to move a stylesheet chunk into the iframe?</p>