import React from 'react'
import { Route, IndexRoute } from 'react-router'

/* containers */
import App from './containers/App'


const Routes = (
  <Route path="/" component={App}>
    <IndexRoute component={require('./containers/Home')} />
    <Route path="/introduce" component={require('./containers/Introduce')} />
    <Route path="/demo/:id/:detail" component={require('./containers/Demo')} />
  </Route>
)

// const Routes = [{
//   path: '/',
//   component: App,
//   indexRoute: {
//     component: require('./containers/Introduce'),
//   },
//   childRoutes: [{
//       path: 'introduce',
//       component: require('./containers/Introduce')
//   }]
// }]

export default Routes

@@ -1,201 +1,43 @@
-import React from 'react'%0Aimport %7B Route, IndexRoute %7D from 'react-router'%0A%0A/* containers */%0Aimport App from './containers/App'%0A%0A%0Aconst Routes = (%0A  %3CRoute path=%22/%22 component=%7BApp%7D%3E%0A    %3CIndexRoute
+const Routes = %5B%0A  %7B%0A    path: '/',%0A   
  com
@@ -34,34 +34,34 @@
 ',%0A    component
-=%7B
+: 
 require('./conta
@@ -70,132 +70,108 @@
 ers/
-Home')%7D /%3E%0A    %3CRoute path=%22/introduce%22 component=%7Brequire('./containers/Introduce')%7D /%3E%0A    %3CRoute path=%22/demo/:id/:detail%22
+App'),%0A    getIndexRoute (location, cb) %7B%0A      require.ensure(%5B%5D, (require) =%3E %7B%0A        cb(null, %7B
  com
@@ -180,10 +180,10 @@
 nent
-=%7B
+: 
 requ
@@ -204,127 +204,198 @@
 ers/
-Demo')%7D /%3E%0A  %3C/Route%3E%0A)%0A%0A// const Routes = %5B%7B%0A//   path: '/',%0A//   component: App,%0A//   indexRoute: %7B%0A//     component:
+Home') %7D)%0A      %7D, 'home')%0A    %7D,%0A    childRoutes: %5B%0A      %7B%0A        path: 'introduce',%0A        getComponent (location, cb) %7B%0A          require.ensure(%5B%5D, (require) =%3E %7B%0A            cb(null,
  req
@@ -428,85 +428,118 @@
 ce')
-,%0A//
+)%0A          %7D, 'introduce')%0A     
    %7D,%0A
-//
    
-childRoutes: %5B%7B%0A//       path: 'introduce',%0A//
+   %7D,%0A      %7B%0A        path: 'demo/:id/:detail',%0A 
        
-c
+getC
 omponent
 : re
@@ -538,56 +538,174 @@
 nent
-: require('./containers/Introduce')%0A//   %7D%5D%0A// %7D
+ (location, cb) %7B%0A          require.ensure(%5B%5D, (require) =%3E %7B%0A            cb(null, require('./containers/Demo'))%0A          %7D, 'demo')%0A        %7D,%0A      %7D,%0A    %5D,%0A  %7D,%0A
 %5D%0A%0Ae

fix code split route