Created
July 20, 2019 21:57
-
-
Save hurali97/ad5dc77121fb0862954aa2b4a4818103 to your computer and use it in GitHub Desktop.
App.js
This file contains 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,{ Component } from 'react'; | |
import ApolloClient from 'apollo-boost' | |
import { ApolloProvider } from 'react-apollo' | |
import Names from './Names' | |
import './App.css'; | |
const client = new ApolloClient({ | |
uri: 'http://localhost:8000/graphql' | |
}) | |
class App extends Component { | |
render(){ | |
return ( | |
<ApolloProvider client={client}> | |
<div className="App"> | |
<Names/> | |
</div> | |
</ApolloProvider> | |
); | |
} | |
} | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment