text: import React from 'react';
  import ReactDOM from 'react-dom';
  import configureStore from './store/store';
  import Root from './components/root';
  import Modal from 'react-modal';
  
  document.addEventListener('DOMContentLoaded', () => {
    const store = configureStore(); // takes care of preloaded state inside store
    window.store = store;
    const root = document.getElementById('root');
    Modal.setAppElement(document.body);
    ReactDOM.render(<Root store={ store }/>, root);
  });
  