title: Electron + React: open a given route in a new window
body: <p>I have a simple Electron application using react based on the <a href="https://github.com/chentsulin/electron-react-boilerplate" rel="noreferrer">electron-react-boilerplate</a>.</p>
  
  <p>In my application, I want to open a new window and go to a url like <code>/#/console</code> or something similar. However, since there is a <code>file://</code> loader, it does not appear to work in any reasonable way</p>
  
  <pre><code>componentDidMount() {
    const proxy = window.open(`file://${path.resolve(__dirname, '../app.html')}`);
  }
  </code></pre>
  
  <p>While this does open the window, it will not go to the appropriate location, because it will just bootstrap the app again, obviously leading to a problem where it will re-open another window continuously.</p>
  
  <p>Is there a way to open a window at a particular route in electron with react?</p>