It turns out that what I wanted to achieve can be done using react-router , I just did not know;)
<Route name="app" component={require('./app.jsx')}> <Route path="/" name="home" component={require('./homepage-container.jsx')}/> <Route path="/otherpath" name="other" component={require('./other.jsx')}/> ... add as many routes as wanted </Route>
Jsx files are loaded on demand, and there is no need for simple HTML since I use a reaction, the design is that every part is a component. In this example, just activate the link to #/otherpath to get the other component, which will be loaded as a child of the top-level component (a route called app ).
source share