shlink-web-client/src/index.js

24 lines
693 B
JavaScript
Raw Normal View History

2018-06-03 21:12:40 +03:00
import 'bootstrap/dist/css/bootstrap.min.css';
2018-05-13 09:57:47 +03:00
import React from 'react';
import ReactDOM from 'react-dom';
2018-06-03 21:12:40 +03:00
import { Provider } from 'react-redux';
2018-06-03 14:15:52 +03:00
import { BrowserRouter } from 'react-router-dom';
2018-06-03 21:12:40 +03:00
import { applyMiddleware, createStore } from 'redux';
2018-05-13 09:57:47 +03:00
import App from './App';
2018-06-03 21:12:40 +03:00
import './index.scss';
import reducers from './reducers';
2018-05-13 09:57:47 +03:00
import registerServiceWorker from './registerServiceWorker';
2018-06-03 21:12:40 +03:00
// const store = createStore(reducers, {}, applyMiddleware());
const store = createStore(reducers, applyMiddleware());
2018-06-03 14:15:52 +03:00
ReactDOM.render(
2018-06-03 21:12:40 +03:00
<Provider store={store}>
<BrowserRouter>
<App />
</BrowserRouter>
</Provider>,
2018-06-03 14:15:52 +03:00
document.getElementById('root')
);
2018-05-13 09:57:47 +03:00
registerServiceWorker();