mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 17:31:56 +03:00
8 lines
241 B
JavaScript
8 lines
241 B
JavaScript
import React from "react";
|
|
import { ApolloProvider } from "@apollo/react-hooks";
|
|
import { client } from "./src/utils/apollo";
|
|
|
|
export const wrapRootElement = ({ element }) => (
|
|
<ApolloProvider client={client}>{element}</ApolloProvider>
|
|
);
|