index.js 457 B

123456789101112131415
  1. import React from 'react'
  2. import { render } from 'react-dom'
  3. import { Router, Route, hashHistory } from 'react-router'
  4. import App from './modules/App'
  5. import About from './modules/About'
  6. import Repos from './modules/Repos'
  7. render((
  8. <Router history={hashHistory}>
  9. <Route path="/" component={App}>
  10. <Route path="/repos" component={Repos}/>
  11. <Route path="/about" component={About}/>
  12. </Route>
  13. </Router>
  14. ), document.getElementById('app'))