Skip to content

Instantly share code, notes, and snippets.

@hurali97
Created July 20, 2019 21:57
Show Gist options
  • Save hurali97/ad5dc77121fb0862954aa2b4a4818103 to your computer and use it in GitHub Desktop.
Save hurali97/ad5dc77121fb0862954aa2b4a4818103 to your computer and use it in GitHub Desktop.
App.js
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