const client = new ApolloClient({ cache: new InMemoryCache(), uri: "http://localhost:4000/graphql" }); ReactDOM.render( <ApolloProvider client={client}> <MyRootComponent /> </ApolloProvider>, document.getElementById('root'), );