Skip to content

Instantly share code, notes, and snippets.

@michelalbers
Created September 9, 2018 19:21
Show Gist options
  • Save michelalbers/0719337b4c0843cee1c98eba5a0da832 to your computer and use it in GitHub Desktop.
Save michelalbers/0719337b4c0843cee1c98eba5a0da832 to your computer and use it in GitHub Desktop.
class Example extends React.PureComponent<any, any> {
render() {
return (
<Query
query={getUsers}
>
{({ data, loading, error }) => {
// Do something with the user data
}}
</Query>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment