diff --git a/src/index.tsx b/src/index.tsx index 4987d79..6fdc4d3 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,5 +1,6 @@ import React from 'react'; import ReactDOM from 'react-dom'; +import { ApolloClient, InMemoryCache, ApolloProvider } from '@apollo/client'; import { ThemeProvider } from 'styled-components'; import { BrowserRouter } from 'react-router-dom'; import { theme } from './themes'; @@ -7,14 +8,21 @@ import App from './App'; import GlobalStyles from './GlobalStyles'; import reportWebVitals from './reportWebVitals'; +const client = new ApolloClient({ + uri: process.env.REACT_APP_GRAPHQL_API, + cache: new InMemoryCache(), +}); + ReactDOM.render( - - - - - - + + + + + + + + , document.getElementById('root') );