blob: f71e82f36ebbc683dc9503f8ecfab36b23fff75c (
plain) (
tree)
|
|
import ThemeProvider from '@material-ui/styles/ThemeProvider';
import { createMuiTheme } from '@material-ui/core/styles';
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 theme = createMuiTheme();
const client = new ApolloClient({
uri: '/graphql',
});
ReactDOM.render(
<ApolloProvider client={client}>
<BrowserRouter>
<ThemeProvider theme={theme}>
<React.Suspense fallback={'Loading…'}>
<App />
</React.Suspense>
</ThemeProvider>
</BrowserRouter>
</ApolloProvider>,
document.getElementById('root')
);
|