summaryrefslogtreecommitdiff
path: root/src/index.js
diff options
context:
space:
mode:
authorGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-07-24 11:43:51 +0200
committerGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-09-23 10:04:27 +0200
commit9a4837f1630912906937e324ce7497414b5d4254 (patch)
tree311b25ea3b604b1b170d38cb3fa96302cb171cd9 /src/index.js
parent909e951165b1bf3289c7add031b9cebef94191ef (diff)
Add navbar to projects page
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/index.js b/src/index.js
new file mode 100644
index 00000000..25c33e82
--- /dev/null
+++ b/src/index.js
@@ -0,0 +1,21 @@
+import React from "react";
+import ReactDOM from "react-dom";
+import {BrowserRouter, Route, Switch} from "react-router-dom";
+import "./index.css";
+import registerServiceWorker from "./registerServiceWorker";
+import Home from "./pages/Home";
+import Projects from "./pages/Projects";
+import NotFound from "./pages/NotFound";
+
+ReactDOM.render(
+ <BrowserRouter>
+ <Switch>
+ <Route exact path="/" component={Home}/>
+ <Route exact path="/projects" component={Projects}/>
+ <Route path="/*" component={NotFound}/>
+ </Switch>
+ </BrowserRouter>,
+ document.getElementById('root')
+);
+
+registerServiceWorker();