-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy pathindex.js
25 lines (23 loc) · 846 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import About from './About.js';
import Gallery from './Gallery.js';
import Songsim from './Songsim.js';
import { IndexRoute, Router, Route, hashHistory } from 'react-router';
import './index.css';
import 'react-resizable/css/styles.css';
import 'bootstrap/dist/css/bootstrap.css';
//import 'bootstrap/dist/css/bootstrap-theme.css';
ReactDOM.render(
(<Router history={hashHistory}>
<Route path="/" component={App} >
<Route path="about(/:chapter)" component={About} />
<Route path="gallery(/:cat)" component={Gallery} />
<Route path="custom(/:customKey)" component={Songsim} />
<Route path="(:songId)" component={Songsim} />
<IndexRoute component={Songsim} />
</Route>
</Router>),
document.getElementById('root')
);