Created
April 20, 2019 21:10
-
-
Save treyhuffine/f6f4893e8b8acc8e6b32a8a50485e104 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 ApolloClient from 'apollo-boost'; | |
import { ApolloProvider } from 'react-apollo'; | |
import { ApolloProvider as ApolloHooksProvider } from 'react-apollo-hooks'; | |
import './index.css'; | |
import App from './App'; | |
const client = new ApolloClient({ | |
uri: 'https://spacexdata.herokuapp.com/graphql', | |
}); | |
ReactDOM.render( | |
<ApolloProvider client={client}> | |
<ApolloHooksProvider client={client}> | |
<App /> | |
</ApolloHooksProvider> | |
</ApolloProvider>, | |
document.getElementById('root'), | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment