Showing
1 changed file
with
8 additions
and
1 deletions
1 | import React from "react"; | 1 | import React from "react"; |
2 | import ReactDOM from "react-dom"; | 2 | import ReactDOM from "react-dom"; |
3 | import App from "./Components/App"; | 3 | import App from "./Components/App"; |
4 | +import { ApolloProvider } from "react-apollo-hooks"; | ||
5 | +import Client from "./Apollo/Client"; | ||
4 | 6 | ||
5 | -ReactDOM.render(<App />, document.getElementById("root")); | 7 | +ReactDOM.render( |
8 | + <ApolloProvider client={Client}> | ||
9 | + <App /> | ||
10 | + </ApolloProvider>, | ||
11 | + document.getElementById("root") | ||
12 | +); | ... | ... |
-
Please register or login to post a comment