Created
October 1, 2018 03:39
-
-
Save JeffML/201286f00dab5fc372af433d770bbc25 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 logo from './logo.svg'; | |
import './App.css'; | |
import { ApolloProvider } from "react-apollo"; | |
import ApolloClient from "apollo-boost"; | |
const client = new ApolloClient({ | |
uri: "https://w5xlvm3vzz.lp.gql.zone/graphql" | |
}); | |
const App = () => ( | |
<ApolloProvider client={client}> | |
<div className="App"> | |
<header className="App-header"> | |
<img src={logo} className="App-logo" alt="logo" /> | |
<h1 className="App-title">Welcome to React</h1> | |
</header> | |
<p className="App-intro"> | |
To get started, edit <code>src/App.js</code> and save to reload. | |
</p> | |
</div> | |
</ApolloProvider> | |
) | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment