title: Get path of electron app for React routing
body: <p>I am pretty new to React and React Routing so maybe I'm totally on the wrong path here. Happy for any help! So I have an electron App running like this:</p>
  
  <pre><code>// Define Options for Window object.
  let windowOptions = {
    width: 1200,
    height: 800,
    frame: false,
    devTools: true,
  };
  
  // Define empty winobject
  let elWin = {};
  
  Electron.createApp()
  .then(() =&gt; Electron.createWindow(elWin, './index.html', 'file:', windowOptions))
  </code></pre>
  
  <p>I'm loading my App Component into the container (startView) in index.html:</p>
  
  <pre><code>//render App
  ReactDOM.render((
    &lt;BrowserRouter&gt;
    &lt;App /&gt;
    &lt;/BrowserRouter&gt;),
    document.getElementById('startView')
  );
  </code></pre>
  
  <p>To make it easier I reduced App to a minimal. So what I basically want is an initial starting View which later holds a login screen. When sucessfully logged in, clicking a login button should lead to a new View. This is where Reacts routing comes into play. App looks like this:</p>
  
  <pre><code>const LoggedIn= () =&gt; (
    &lt;div&gt; New View&lt;/div&gt;
  );
  
  const Home = (props) =&gt; (
    &lt;div&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;Link to="/newView"&gt;&lt;button&gt; Login &lt;/button&gt;&lt;/Link&gt;&lt;/li&gt;
    &lt;/ul&gt;
    &lt;/div&gt;
  );
  
  class App extends React.Component {
  
    constructor(props) {
      super(props);
    }
  
    render() {
      return (
        &lt;div&gt;
        &lt;Switch&gt;
          &lt;Route path="/" exact component={Home}/&gt;
          &lt;Route path="/newView" component={LoggedIn}/&gt;
        &lt;/Switch&gt;
        &lt;/div&gt;
      );
    }
  }
  
  export default App;
  </code></pre>
  
  <p>My problem is I can't get the Home component to render because the inital route of my App is obviously different. Removing the 'exact' parameter works, it renders Home but then the routing is not working anymore for the other route (/newView) which makes sense too. Any chance I can get Home to render on the initial path of my Application while the other routes still working?</p>