aboutsummaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorNoah Loomans <noahloomans@gmail.com>2017-12-13 12:15:40 +0100
committerNoah Loomans <noahloomans@gmail.com>2017-12-13 12:15:40 +0100
commit58f69c010e55ded87dd5976a61a543183e26cba9 (patch)
tree150b8e44b7fa1daa073b3f8d4ad1fdff44fc9267 /src/client
parentb00e556ebff50558e6532683ff2763825c51646f (diff)
Add react-router to the mix
Diffstat (limited to 'src/client')
-rw-r--r--src/client/react/LandingPage.jsx (renamed from src/client/react/App.jsx)0
-rw-r--r--src/client/react/index.jsx9
2 files changed, 7 insertions, 2 deletions
diff --git a/src/client/react/App.jsx b/src/client/react/LandingPage.jsx
index d79826e..d79826e 100644
--- a/src/client/react/App.jsx
+++ b/src/client/react/LandingPage.jsx
diff --git a/src/client/react/index.jsx b/src/client/react/index.jsx
index e1bae3c..8c92bb1 100644
--- a/src/client/react/index.jsx
+++ b/src/client/react/index.jsx
@@ -1,9 +1,10 @@
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
+import { BrowserRouter as Router, Route } from 'react-router-dom';
import { createStore } from 'redux';
import reducer from './reducers';
-import App from './App';
+import LandingPage from './LandingPage';
/* eslint-disable no-underscore-dangle */
const store = createStore(
@@ -14,7 +15,11 @@ const store = createStore(
ReactDOM.render(
<Provider store={store}>
- <App />
+ <Router>
+ <div>
+ <Route exact path="/" component={LandingPage} />
+ </div>
+ </Router>
</Provider>,
document.getElementById('root'),
);