Meteor.startup with external react routes component
<p>I am trying to implement Meteor.startup with a Router React component (that lives in a different .jsx) however it doesn't seem to work.</p>

<p>If I have the Router React component in the same .jsx file as Meteor.startup, then it works fine.</p>

<p>Any ideas why this might be?</p>

<p>Here is my code that doesn't work :</p>

<pre><code>import { Routes } from './routes.jsx'; 

Meteor.startup( () =&gt; {
    render(&lt;Routes /&gt;, document.body);
});
</code></pre>

<p>Please note that routes.jsx contains the same Route as the one shown in the code snippet below.</p>

<p>And here is the code that works :</p>

<pre><code>export default class Routes extends Component{
  render() {
    return (
      &lt;Router history={browserHistory}&gt;
        &lt;Route path="/" component={App}&gt;
        &lt;/Route&gt;
      &lt;/Router&gt;
      );
  } 
}

Meteor.startup( () =&gt; {
      render(&lt;Routes /&gt;, document.body);
});
</code></pre>