text: import dotenv from "dotenv";
  import React from "react";
  import ReactDOM from "react-dom";
  import "./index.css";
  import App from "./dashboard/App";
  import { BrowserRouter as Router } from "react-router-dom";
  import ApolloClient from "apollo-boost";
  import { ApolloProvider } from "react-apollo";
  import { createStore, applyMiddleware } from "redux";
  import { Provider } from "react-redux";
  import thunk from "redux-thunk";
  import rootReducer from "./Components/reducers/rootReducer";
  import { ThemeProvider } from "@material-ui/core/styles";
  //Theme stuff
  import theme from "./theme";
  
  dotenv.config();
  
  const store = createStore(rootReducer, applyMiddleware(thunk));
  const client = new ApolloClient({
    uri: `${process.env.REACT_APP_BACKEND_URL}`,
    onError: ({ networkError, graphQLErrors }) => {
      console.log("graphQLErrors", graphQLErrors);
      console.log("networkErrors", networkError);
    }
  });
  ReactDOM.render(
    <ApolloProvider client={client}>
      <Provider store={store}>
        <ThemeProvider theme={theme}>
          <Router>
            <App />
          </Router>
        </ThemeProvider>
      </Provider>
    </ApolloProvider>,
    document.getElementById("root")
  );
  