Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.