From 58f69c010e55ded87dd5976a61a543183e26cba9 Mon Sep 17 00:00:00 2001
From: Noah Loomans <noahloomans@gmail.com>
Date: Wed, 13 Dec 2017 12:15:40 +0100
Subject: Add react-router to the mix

---
 src/client/react/index.jsx | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

(limited to 'src/client/react/index.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'),
 );
-- 
cgit v1.1

