blob: f0c322635c4392a0066338aeffd137398f7f47e3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { BrowserRouter as Router, Route } from 'react-router-dom';
import { createStore, applyMiddleware, compose } from 'redux';
import logger from 'redux-logger';
import thunk from 'redux-thunk';
import reducer from './reducers';
import LandingPage from './LandingPage';
// eslint-disable-next-line no-underscore-dangle
// const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
const store = createStore(
reducer,
compose(applyMiddleware(logger, thunk)),
);
ReactDOM.render(
<Provider store={store}>
<Router>
<div>
<Route exact path="/" component={LandingPage} />
</div>
</Router>
</Provider>,
document.getElementById('root'),
);
|