'use strict';
import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route, IndexRoute, hashHistory, browserHistory } from 'react-router'

import '../public/styles/master.scss';

// Route-specific views:
import Home from './components/Home';
import About from './components/About';
import Focus from './components/Focus';
import Contact from './components/Contact';
import Error404 from './components/Error404';

// Route-invariant site layout views:
import NavBar from './components/NavBar';
import MainLayout from './components/MainLayout';


// Top-level React (pure functional) component:
const App = () => (
  <Router history={ hashHistory }>
    <Route path='/' component={ MainLayout }>
      <IndexRoute component={ Home } />
      <Route path='/about' component={ About } />
      <Route path='/focus' component={ Focus } />
      <Route path='/contact' component={ Contact } />
      <Route path='*' component={ Error404 } />
    </Route>
  </Router>
);

export default App;

@@ -38,530 +38,76 @@
 t';%0A
-import ReactDOM from 'react-dom';%0Aimport %7B Router, Route, IndexRoute, hashHistory, browserHistory %7D from 'react-router'%0A%0Aimport '../public/styles/master.scss';%0A%0A// Route-specific views:%0Aimport Home from './components/Home';%0Aimport About from './components/About';%0Aimport Focus from './components/Focus';%0Aimport Contact from './components/Contact';%0Aimport Error404 from './components/Error404';%0A%0A// Route-invariant site layout views:%0Aimport NavBar from './components/NavBar';%0Aimport MainLayout from './components/MainLayout
+%0Aimport '../public/styles/master.scss';%0Aimport Routes from './Router
 ';%0A%0A
@@ -178,357 +178,20 @@
 =%3E (
-%0A 
  %3CRoute
-r history=%7B hashHistory %7D%3E%0A    %3CRoute path='/' component=%7B MainLayout %7D%3E%0A      %3CIndexRoute component=%7B Home %7D /%3E%0A      %3CRoute path='/about' component=%7B About %7D /%3E%0A      %3CRoute path='/focus' component=%7B Focus %7D /%3E%0A      %3CRoute path='/contact' component=%7B Contact %7D /%3E%0A      %3CRoute path='*' component=%7B Error404 %7D /%3E%0A    %3C/Route%3E%0A  %3C/Router%3E%0A
+s /%3E 
 );%0A%0A

Delete unnecessary imports and import new Routes component