title: React + Electron How to print HTML?
body: <p>I am using react and electron. I need to print some generated HTML in react app when I pus click on button:</p>
  
  <pre><code>&lt;FlatButton label='Print' primary={true} onTouchTap={this.props.print} /&gt;
  </code></pre>
  
  <p>But the problem is, that new window in electron don't have document property, so I can't write there some HTML. New Window i need to preview output data:</p>
  
  <pre><code>  print(){
      let win = window.open();
  
      console.log(win);
    }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/X6004.png" rel="nofollow noreferrer">new window properties</a>
  I need something like that</p>
  
  <pre><code>let win = window.open();
  win.document.write('Some Data');
  win.print()
  win.close()
  </code></pre>
  
  <p>How can I resolve this problem? Any ideas? </p>