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




                                                 
 
                        

                                 


                          




                                  
               


                       
                                 
  
import ApolloClient from 'apollo-boost';
import React from 'react';
import { ApolloProvider } from 'react-apollo';
import ReactDOM from 'react-dom';
import { BrowserRouter } from 'react-router-dom';

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