blob: 8c4137fe25f3a5b1d7ea1a4232f146a3fc15ca9f (
plain) (
tree)
|
|
import React from "react";
import ReactDOM from "react-dom";
import { BrowserRouter } from "react-router-dom";
import ApolloClient from "apollo-boost";
import { ApolloProvider } from "react-apollo";
import CssBaseline from "@material-ui/core/CssBaseline";
import App from "./App";
const client = new ApolloClient({
uri: "/graphql",
connectToDevTools: true
});
ReactDOM.render(
<ApolloProvider client={client}>
<BrowserRouter>
<React.Fragment>
<App />
<CssBaseline />
</React.Fragment>
</BrowserRouter>
</ApolloProvider>,
document.getElementById("root")
);
|