Skip to content

Instantly share code, notes, and snippets.

@akoenig
Created March 4, 2018 07:40
Show Gist options
  • Save akoenig/7ded4d64482061d7cf862c99129c8541 to your computer and use it in GitHub Desktop.
Save akoenig/7ded4d64482061d7cf862c99129c8541 to your computer and use it in GitHub Desktop.
// index.js
import { render } from "react-dom";
import { ApolloProvider } from "react-apollo";
import { App } from "./App";
import { createClient } from "./graphql";
const $app = document.getElementById("app");
const client = createClient({
endpointUri: "https://api.graph.cool/..."
});
render(
<ApolloProvider client={client}>
<App />
</ApolloProvider>
, $app);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment