20 lines
448 B
TypeScript
20 lines
448 B
TypeScript
|
import React from "react"
|
||
|
import ReactDOM from "react-dom"
|
||
|
import "./index.scss"
|
||
|
import App from "./App"
|
||
|
import { ApolloClient, ApolloProvider, InMemoryCache } from "@apollo/client"
|
||
|
|
||
|
const client = new ApolloClient({
|
||
|
uri: "http://localhost:8080/graphql",
|
||
|
cache: new InMemoryCache()
|
||
|
})
|
||
|
|
||
|
ReactDOM.render(
|
||
|
<React.StrictMode>
|
||
|
<ApolloProvider client={client}>
|
||
|
<App />
|
||
|
</ApolloProvider>
|
||
|
</React.StrictMode>,
|
||
|
document.getElementById("root")
|
||
|
)
|