diff options
Diffstat (limited to 'src/client/react')
-rw-r--r-- | src/client/react/LandingPage.jsx (renamed from src/client/react/App.jsx) | 0 | ||||
-rw-r--r-- | src/client/react/index.jsx | 9 |
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'), ); |