aboutsummaryrefslogtreecommitdiffstats
path: root/webui/src/index.js
blob: 80b2651dab451547c8f2e94e022337ecfad2903a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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 App from "./App";

const client = new ApolloClient({
  uri: "/graphql",
  connectToDevTools: true
});

ReactDOM.render(
  <ApolloProvider client={client}>
    <BrowserRouter>
      <React.Fragment>
        <App />
      </React.Fragment>
    </BrowserRouter>
  </ApolloProvider>,
  document.getElementById("root")
);