var <%= scriptAppName %> = require('./<%= scriptAppName %>');
var React = require('react');
var {DefaultRoute, Route, Routes} = require('react-router');

React.renderComponent((
  <Routes location="history">
    <Route path="/" handler={<%= scriptAppName %>}>
    </Route>
  </Routes>
), document.getElementById('content'));

var <%= scriptAppName %> = require('./<%= scriptAppName %>');
var React = require('react');
var Router = require('react-router');
var Route = Router.Route;

var content = document.getElementById('content');

var Routes = (
  <Route handler={<%= scriptAppName %>}>
    <Route name="/" handler={<%= scriptAppName %>}/>
  </Route>
);

Router.run(Routes, function (Handler) {
  React.render(<Handler/>, content);
});

Fix React Router after upgrade
Fix React Router after upgrade
