From 58f69c010e55ded87dd5976a61a543183e26cba9 Mon Sep 17 00:00:00 2001 From: Noah Loomans Date: Wed, 13 Dec 2017 12:15:40 +0100 Subject: Add react-router to the mix --- src/client/react/App.jsx | 10 ---------- src/client/react/LandingPage.jsx | 10 ++++++++++ src/client/react/index.jsx | 9 +++++++-- 3 files changed, 17 insertions(+), 12 deletions(-) delete mode 100644 src/client/react/App.jsx create mode 100644 src/client/react/LandingPage.jsx (limited to 'src') diff --git a/src/client/react/App.jsx b/src/client/react/App.jsx deleted file mode 100644 index d79826e..0000000 --- a/src/client/react/App.jsx +++ /dev/null @@ -1,10 +0,0 @@ -import React from 'react'; -import Search from './components/container/Search'; - -const App = () => ( -
- -
-); - -export default App; diff --git a/src/client/react/LandingPage.jsx b/src/client/react/LandingPage.jsx new file mode 100644 index 0000000..d79826e --- /dev/null +++ b/src/client/react/LandingPage.jsx @@ -0,0 +1,10 @@ +import React from 'react'; +import Search from './components/container/Search'; + +const App = () => ( +
+ +
+); + +export default App; 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( - + +
+ +
+
, document.getElementById('root'), ); -- cgit v1.1