-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
37 lines (31 loc) · 1.08 KB
/
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
26
27
28
29
30
31
32
33
34
35
36
37
import React from 'react';
import ReactDOM from 'react-dom';
import { HashRouter, Route } from 'react-router-dom';
// Styles
import 'bootstrap/dist/css/bootstrap.css';
import './index.css';
// content components
import Home from './content/home/Home';
import About from './content/about/About';
import Events from './content/events/Events';
import Contact from './content/contact/Contact';
import Talk from './content/talk/Talk';
// layout components
import Header from './layout/header/Header';
import Footer from './layout/footer/Footer';
// PWA-ify
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(
<HashRouter>
<div>
<Header />
<Route exact path="/" component={Home}/>
<Route exact path="/about" component={About}/>
<Route exact path="/talk" component={Talk}/>
<Route exact path="/event" component={Events}/>
<Route exact path="/contact" component={Contact}/>
<Footer />
</div>
</HashRouter>,
document.getElementById('root'));
registerServiceWorker();