text: import React from 'react';
  import ReactDOM from 'react-dom';
  import App from './App';
  import {createStore, applyMiddleware, compose} from 'redux'
  import thunk from 'redux-thunk'
  import chargingReducer from './reducers/chargingReducer'
  import {composeWithDevTools} from 'redux-devtools-extension'
  import {Provider} from 'react-redux'
  import { BrowserRouter as Router } from 'react-router-dom';
  import 'bootstrap/dist/css/bootstrap.min.css'
  import './style.css'
  
  const today = new Date()
  
  const initialState = {ongoing: false, total: 0.00, datetime: today.toLocaleString(), length: 0, paid: false, transactions: [] }
  
  
  const store = createStore(chargingReducer, initialState, compose(applyMiddleware(thunk), composeWithDevTools()))
  
  ReactDOM.render(
    <Router>
      <Provider store={store}>
        <App /> 
      </Provider>
    </Router>,
    document.getElementById('root')
  );
  
  // If you want to start measuring performance in your app, pass a function
  // to log results (for example: reportWebVitals(console.log))
  // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
  
  