text: import React from 'react';
  import ReactDOM from 'react-dom';
  import * as sessionActions from './store/session'
  import { Provider } from 'react-redux';
  import { BrowserRouter } from 'react-router-dom';
  import { restoreCSRF, fetch } from './store/csrf';
  
  import './styles/index.css'
  
  import App from './App';
  
  import configureStore from './store';
  
  const store = configureStore();
  
  if (process.env.NODE_ENV !== 'production') {
    restoreCSRF();
    window.devStore = store;
    window.devFetch = fetch;
    window.sessionActions = sessionActions;
  }
  
  function Root() {
    return (
      <Provider store={store}>
        <BrowserRouter>
          <App />
        </BrowserRouter>
      </Provider>
    );
  }
  
  ReactDOM.render(
    <React.StrictMode>
      <Root />
    </React.StrictMode>,
    document.getElementById('root')
  );
  