import React from "react" ; import ReactDOM from "react-dom" ; import "./index.css" ; import App from "./App" ; import * as serviceWorker from "./serviceWorker" ; import { BrowserRouter } from "react-router-dom" ; import { Provider } from "react-redux" ; import configureStore from "./store/configureStore" ; import ErrorBoundary from "./components/ErrorBoundary" ; import ReactModal from "react-modal" ; import { ApolloClient , InMemoryCache , ApolloProvider } from "@apollo/client" ; const client = new ApolloClient ( { uri : "http://localhost:5000/graphql" , credentials : "include" , cache : new InMemoryCache ( { resultCaching : false , } ) , } ) ; ReactDOM . render ( < Provider store = { configureStore ( ) } > < BrowserRouter > < ApolloProvider client = { client } > < ErrorBoundary > { [ < App key = "App" / > ] } < /ErrorBoundary> < /ApolloProvider> < /BrowserRouter> < /Provider>, document.getElementById("root")); ReactModal . setAppElement ( "#root" ) ; serviceWorker . unregister ( ) ;