Created
August 12, 2018 19:01
-
-
Save marcaaron/20c5fb5350bf6b80702389ce253864c6 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
import React from 'react'; | |
import { gql } from 'apollo-boost'; | |
const FakeQuery = (props) => { | |
return props.children('Hello World'); | |
} | |
const MyComponent = (props) => { | |
return ( | |
<FakeQuery> | |
{ (props) => { | |
console.log(props); | |
return null; | |
}} | |
</FakeQuery> | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment