blob: c34cc7ccd59d0e1e57bdd19fa7ed64efc8768bf5 (
plain) (
tree)
|
|
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')
)
|