const React = require('react');
const renderToString = require('react-dom/server').renderToString;
const match = require('react-router').match;
const RouterContext = require('react-router').RouterContext;
const express = require('express');
const path = require('path');
const pug = require('pug');

const app = express();

app.use(express.static(path.join(__dirname, 'public')));
app.set('view engine', 'pug');

@@ -1,41 +1,64 @@
-const React = require(
+import 'babel-register';%0Aimport React from 
 'react'
-)
 ;%0A
-const
+import %7B
  ren
@@ -69,26 +69,23 @@
 oString 
-= require(
+%7D from 
 'react-d
@@ -98,76 +98,25 @@
 ver'
-).renderToString;%0Aconst match = require('react-router').match;%0Aconst
+;%0Aimport %7B match,
  Rou
@@ -126,26 +126,23 @@
 Context 
-= require(
+%7D from 
 'react-r
@@ -151,49 +151,30 @@
 ter'
-).RouterContext;%0Aconst express = require(
+;%0Aimport express from 
 'exp
@@ -182,67 +182,56 @@
 ess'
-)
 ;%0A
-cons
+impor
 t path 
-= require(
+from 
 'path'
-)
 ;%0A
-cons
+impor
 t pug 
-= require(
+from 
 'pug'
-)
 ;%0A%0Ac
@@ -251,16 +251,61 @@
 press();
+%0Aimport App from '../src/components/app/App';
 %0A%0Aapp.us
@@ -386,8 +386,47 @@
 'pug');%0A
+%0Aconsole.log(renderToString(%3CApp /%3E));%0A

use ES6 syntax and babel-register