Last active
September 20, 2019 11:41
-
-
Save riccardogiorato/52eb9a430dc4b9dd246635da6e5020c6 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 "./styles.css"; | |
import React from "react"; | |
import ReactDOM from "react-dom"; | |
import ApolloClient from "apollo-boost"; | |
import { ApolloProvider } from "@apollo/react-hooks"; | |
import App from "./App"; | |
const client = new ApolloClient({ | |
uri: "https://api.graph.cool/simple/v1/swapi" | |
}); | |
ReactDOM.render( | |
<ApolloProvider client={client}> | |
<App /> | |
</ApolloProvider>, | |
document.getElementById("app") | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment