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

import App from './App';
import Chapter1 from './Chapter1';
import Chapter2 from './Chapter2';
import Chapter3GoodEnding from './Chapter3GoodEnd';
import Chapter3BadEnding from './Chapter3BadEnd';
import 'flexboxgrid/css/flexboxgrid.min.css';
import './index.css';

const routes = (
  <Route path="/">
    <IndexRoute component={App} />
    <Route path="chapter1" components={Chapter1} />
    <Route path="chapter2" components={Chapter2} />
    <Route path="chapter3-ge" components={Chapter3GoodEnding} />
    <Route path="chapter3-be" components={Chapter3BadEnding} />
  </Route>
)

ReactDOM.render(
  <Router
    routes={routes}
    history={browserHistory}
  />,
  document.getElementById('root')
);

@@ -494,33 +494,32 @@
 pter1%22 component
-s
 =%7BChapter1%7D /%3E%0A 
@@ -545,33 +545,32 @@
 pter2%22 component
-s
 =%7BChapter2%7D /%3E%0A 
@@ -599,33 +599,32 @@
 r3-ge%22 component
-s
 =%7BChapter3GoodEn
@@ -671,17 +671,16 @@
 omponent
-s
 =%7BChapte
@@ -695,16 +695,55 @@
 ing%7D /%3E%0A
+    %3CRoute path=%22*%22 component=%7BApp%7D /%3E%0A
   %3C/Rout

fix router bug