title: How to get a React component's innerHTML
body: <p>I have a react component and I want its innerHTML to pass as prop to an iframe.</p>
  
  <pre><code>render() {
          const page = &lt;PrintPage /&gt;
          const iframeContent = page..something...innerHTML
          return (
              &lt;iframe srcDoc={iframeContent}/&gt;);
  }
  </code></pre>
  
  <p>Is there any way for doing like this.</p>
  
  <p>I want to render  only within the iframe, so i can't use ref. I want the innerHTML of component which is not mounted</p>