/**
 * Root route config
 * @see https://react-router.now.sh/route-config
 */

import React from 'react';
import Router from 'react-router/BrowserRouter';
import Match from 'react-router/Match';

import Layout from 'components/Layout';
import Home from './Home';
import About from './About';


export const routes = [
  {
    pattern: '/',
    name: 'Home',
    exactly: true,
    component: Home
  },
  {
    pattern: '/about',
    name: 'About',
    component: About
  }
];


function AppRouter() {
  return (
    <Router>
      <Layout>
        {routes.map(route => (
          <Match
            key={route.pattern}
            pattern={route.pattern}
            exactly={route.exactly}
            component={route.component}
          />
        ))}
      </Layout>
    </Router>
  );
}


export default AppRouter;

@@ -187,16 +187,100 @@
 /Match';
+%0Aimport Miss from 'react-router/Miss';%0Aimport Redirect from 'react-router/Redirect';
 %0A%0Aimport
@@ -555,16 +555,65 @@
  %7D%0A%5D;%0A%0A%0A
+const HomeRedirect = () =%3E %3CRedirect to=%22/%22 /%3E;%0A%0A
 function
@@ -871,16 +871,16 @@
      /%3E%0A
-
         
@@ -883,16 +883,58 @@
     ))%7D%0A
+        %3CMiss component=%7BHomeRedirect%7D /%3E%0A
       %3C/

add a home redirect