summaryrefslogtreecommitdiff
path: root/src/index.js
diff options
context:
space:
mode:
authorGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-08-09 14:29:14 +0300
committerGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-09-23 10:05:18 +0200
commit67a771cbb02ec9da3c60704901f3150b46a7262b (patch)
treef5e8e28cc0b7539196e7cdc2f4f4e7cc2c165fbd /src/index.js
parentd1194f0706789287b98996b629451042f62bf6eb (diff)
Create basic projects page with add-button
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js19
1 files changed, 8 insertions, 11 deletions
diff --git a/src/index.js b/src/index.js
index 25c33e82..1176224e 100644
--- a/src/index.js
+++ b/src/index.js
@@ -1,20 +1,17 @@
import React from "react";
import ReactDOM from "react-dom";
-import {BrowserRouter, Route, Switch} from "react-router-dom";
+import {Provider} from "react-redux";
import "./index.css";
import registerServiceWorker from "./registerServiceWorker";
-import Home from "./pages/Home";
-import Projects from "./pages/Projects";
-import NotFound from "./pages/NotFound";
+import Routes from "./routes";
+import configureStore from "./store/configureStore";
+
+const store = configureStore();
ReactDOM.render(
- <BrowserRouter>
- <Switch>
- <Route exact path="/" component={Home}/>
- <Route exact path="/projects" component={Projects}/>
- <Route path="/*" component={NotFound}/>
- </Switch>
- </BrowserRouter>,
+ <Provider store={store}>
+ <Routes/>
+ </Provider>,
document.getElementById('root')
);