spoti-search/src/index.tsx

20 lines
469 B
TypeScript
Raw Normal View History

2020-07-22 09:42:48 +00:00
import React from 'react';
import ReactDOM from 'react-dom';
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
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>
<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
);