text: import React from 'react';
  import ReactDOM from 'react-dom';
  import { Provider } from 'react-redux';
  import { createStore, applyMiddleware, compose } from 'redux';
  import { BrowserRouter } from 'react-router-dom';
  import thunk from 'redux-thunk'
  import App from './components/app';
  import reducers from './reducers';
  
  const createStoreWithMiddleware = applyMiddleware(thunk)(compose((window.devToolsExtension ? window.devToolsExtension() : f => f)(createStore)));
  
  import './style/main.scss';
  
  
  function main() {
      ReactDOM.render(
          <Provider store={createStoreWithMiddleware(reducers)}>
              <BrowserRouter>
                  <App />
              </BrowserRouter>
          </Provider>
          , document.querySelector('.app-wrapper'));
  }
  
  document.addEventListener('DOMContentLoaded', main);
  