import React from 'react';
import { render } from 'react-dom';
import { Router, browserHistory } from 'react-router';

// Import your routes so that you can pass them to the <Router /> component
import routes from './routes.js';

// Only render in the browser
if (typeof document !== 'undefined') {
  render(
    <Router routes={routes} history={browserHistory} />,
    document.getElementById('root')
  );
}

// Export the routes here so that ReactStaticPlugin can access them and build
// the static files.
export * from './routes.js';

@@ -227,89 +227,16 @@
 ';%0A%0A
-// Only render in the browser%0Aif (typeof document !== 'undefined') %7B%0A  render(%0A  
+render(%0A
   %3CR
@@ -286,18 +286,16 @@
 ry%7D /%3E,%0A
-  
   docume
@@ -324,140 +324,7 @@
 t')%0A
-  
 );%0A
-%7D%0A%0A// Export the routes here so that ReactStaticPlugin can access them and build%0A// the static files.%0Aexport * from './routes.js';%0A

Update example to no longer use any special logic in index file