-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
26 lines (25 loc) · 901 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
26
import React from 'react'
import ReactDOM from 'react-dom'
import App from './App'
import Game from './components/Game'
import About from './components/About'
import CurrentProject from './components/CurrentProject'
import PastProjects from './components/PastProjects'
import Contact from './components/Contact'
import { HashRouter, Route, Link } from 'react-router-dom'
import registerServiceWorker from './registerServiceWorker'
import './index.css'
ReactDOM.render((
<HashRouter>
<div>
<Route exact path="/" component={App} />
<Route path="/game" component={Game}/>
<Route path="/about" component={About}/>
<Route path="/currentproject" component={CurrentProject}/>
<Route path="/pastProjects" component={PastProjects}/>
<Route path="/contact" component={Contact}/>
</div>
</HashRouter>
),
document.getElementById( 'root' ))
registerServiceWorker()