Created
August 14, 2018 06:39
-
-
Save jeznag/54c91c91677e8b4c95664662bbe2d85e to your computer and use it in GitHub Desktop.
submitformfixture-with-query-result
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
class SubmitFormFixture extends Component { | |
public displayName = 'SubmitForm'; | |
public render() { | |
return ( | |
<Query query={getAvailableOptions}>{({ loading, error, data }) => ( | |
<Fragment> | |
<span data-result={JSON.stringify({ | |
loading, | |
error, | |
data | |
})} /> | |
<SubmitFormComponent /> | |
</Fragment> | |
)}</Query> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment