Skip to content

Instantly share code, notes, and snippets.

@gc-codesnippets
Created August 25, 2017 15:30
Show Gist options
  • Select an option

  • Save gc-codesnippets/fd2f5e2f98cf575e92fcc6dbfedc3efb to your computer and use it in GitHub Desktop.

Select an option

Save gc-codesnippets/fd2f5e2f98cf575e92fcc6dbfedc3efb to your computer and use it in GitHub Desktop.
render() {
return (
<QueryRenderer
environment={environment}
query={AppAllPostQuery}
render={({error, props}) => {
if (error) {
return <div>{error.message}</div>
} else if (props) {
return <ListPage viewer={props.viewer} />
}
return <div>Loading</div>
}}
/>
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment