s3browser-frontend/src/index.tsx

20 lines
448 B
TypeScript
Raw Normal View History

2021-07-26 12:54:22 +00:00
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")
)