Created
February 13, 2020 16:52
-
-
Save stemmlerjs/e2f1ca3bf81625b2016ffe018e094670 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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