routes.js 502 B

1234567891011121314151617
  1. import React from 'react'
  2. import { Router, Route, browserHistory, IndexRoute } from 'react-router'
  3. import App from './App'
  4. import About from './About'
  5. import Repos from './Repos'
  6. import Repo from './Repo'
  7. import Home from './Home'
  8. module.exports = (
  9. <Route path="/" component={App}>
  10. <IndexRoute component={Home}/>
  11. <Route path="/repos" component={Repos}>
  12. <Route path="/repos/:userName/:repoName" component={Repo}/>
  13. </Route>
  14. <Route path="/about" component={About}/>
  15. </Route>
  16. )