Skip to content

Instantly share code, notes, and snippets.

@jeznag
Created August 14, 2018 06:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeznag/54c91c91677e8b4c95664662bbe2d85e to your computer and use it in GitHub Desktop.
Save jeznag/54c91c91677e8b4c95664662bbe2d85e to your computer and use it in GitHub Desktop.
submitformfixture-with-query-result
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