-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.jsx
24 lines (21 loc) · 803 Bytes
/
index.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route, hashHistory, IndexRoute } from 'react-router';
import App from './components/app';
import About from './components/about';
import Repos from './components/repos';
import Repo from './components/repo';
import Home from './components/home';
require('../node_modules/bootstrap/dist/css/bootstrap.css');
require('./index.css');
ReactDOM.render((
<Router history={hashHistory}>
<Route path="/" component={App}>
<IndexRoute component={Home} />
<Route path="/repos" component={Repos}>
<Route path="/repos/:userName/:repoName" component={Repo} />
</Route>
<Route path="/about" component={About} />
</Route>
</Router>
), document.body.appendChild(document.createElement('div')));