|
@@ -1,4 +1,15 @@
|
|
import React from 'react'
|
|
import React from 'react'
|
|
import { render } from 'react-dom'
|
|
import { render } from 'react-dom'
|
|
|
|
+import { Router, Route, hashHistory } from 'react-router'
|
|
import App from './modules/App'
|
|
import App from './modules/App'
|
|
-render(<App/>, document.getElementById('app'))
|
|
|
|
|
|
+import About from './modules/About'
|
|
|
|
+import Repos from './modules/Repos'
|
|
|
|
+
|
|
|
|
+render((
|
|
|
|
+ <Router history={hashHistory}>
|
|
|
|
+ <Route path="/" component={App}/>
|
|
|
|
+ <Route path="/repos" component={Repos}/>
|
|
|
|
+ <Route path="/about" component={About}/>
|
|
|
|
+ </Router>
|
|
|
|
+), document.getElementById('app'))
|
|
|
|
+
|