Skip to content

Instantly share code, notes, and snippets.

@johnymontana
Created February 5, 2018 23:46
Show Gist options
  • Select an option

  • Save johnymontana/e975fe06e25827fb4f2d078f43f0d9a4 to your computer and use it in GitHub Desktop.

Select an option

Save johnymontana/e975fe06e25827fb4f2d078f43f0d9a4 to your computer and use it in GitHub Desktop.
import App from "./components/App";
import React from "react";
import { render } from "react-dom";
import { Client, Provider } from "urql";
const client = new Client({
url: "https://3wzp7qnjv.lp.gql.zone/graphql"
});
const Root = () => (
<Provider client={client}>
<App />
</Provider>
);
render(<Root />, document.getElementById("root"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment