aboutsummaryrefslogblamecommitdiffstats
path: root/webui/src/index.js
blob: 8c4137fe25f3a5b1d7ea1a4232f146a3fc15ca9f (plain) (tree)
1
2
3
4
5
6
7





                                                        
 

















                                  
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")
);