import { Query } from 'graphql-react' export default () => ( { options.url = 'https://graphql-pokemon.now.sh' }} operation={{ query: /* GraphQL */ ` { pokemon(name: "Pikachu") { name image } } ` }} > {({ data, loading }) => data ? ( {data.pokemon.name} ) : loading ? (

Loading…

) : (

Error!

) }
)