Last active
September 18, 2016 21:11
-
-
Save jbaxleyiii/089f9d32300b191507d1dd8ade88a21d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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