Created
September 9, 2018 19:21
-
-
Save michelalbers/0719337b4c0843cee1c98eba5a0da832 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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