2020-07-22 09:42:48 +00:00
|
|
|
import React from 'react';
|
|
|
|
import ReactDOM from 'react-dom';
|
2020-07-22 10:11:54 +00:00
|
|
|
import { ApolloClient, InMemoryCache, ApolloProvider } from '@apollo/client';
|
|
|
|
|
2020-07-22 09:57:07 +00:00
|
|
|
import App from './components/App';
|
2020-07-22 09:42:48 +00:00
|
|
|
|
2020-07-22 10:11:54 +00:00
|
|
|
const client = new ApolloClient({
|
|
|
|
uri: 'https://spotify-graphql-server.herokuapp.com/graphql',
|
|
|
|
cache: new InMemoryCache(),
|
|
|
|
});
|
|
|
|
|
2020-07-22 09:42:48 +00:00
|
|
|
ReactDOM.render(
|
2020-07-22 09:57:07 +00:00
|
|
|
<React.StrictMode>
|
2020-07-22 10:11:54 +00:00
|
|
|
<ApolloProvider client={client}>
|
|
|
|
<App />
|
|
|
|
</ApolloProvider>
|
2020-07-22 09:57:07 +00:00
|
|
|
</React.StrictMode>,
|
|
|
|
document.getElementById('root'),
|
2020-07-22 09:42:48 +00:00
|
|
|
);
|