Skip to content

Instantly share code, notes, and snippets.

@stemmlerjs
Created February 13, 2020 16:52
Show Gist options
  • Select an option

  • Save stemmlerjs/e2f1ca3bf81625b2016ffe018e094670 to your computer and use it in GitHub Desktop.

Select an option

Save stemmlerjs/e2f1ca3bf81625b2016ffe018e094670 to your computer and use it in GitHub Desktop.
import React from "react";
import ReactDOM from "react-dom";
import App from "./App";
import "./index.css"
import {
ApolloClient,
InMemoryCache,
ApolloProvider,
HttpLink
} from "@apollo/client";
const client = new ApolloClient({
cache: new InMemoryCache(),
link: new HttpLink({
uri: 'http://localhost:4000/'
});
});
ReactDOM.render(
<ApolloProvider client={client}>
<App />
</ApolloProvider>,
document.getElementById("root")
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment