Skip to content

Instantly share code, notes, and snippets.

@jbaxleyiii
Last active September 18, 2016 21:11
Show Gist options
  • Save jbaxleyiii/089f9d32300b191507d1dd8ade88a21d to your computer and use it in GitHub Desktop.
Save jbaxleyiii/089f9d32300b191507d1dd8ade88a21d to your computer and use it in GitHub Desktop.
const Container = graphql(gql`query GetUser { person { firstName } }`)(({ data }) => {
const { loading, person } = data;
if (loading) return <div>Loading...<div>
return <h1>Hello {person.firstName}</h1>
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment