Skip to content

Instantly share code, notes, and snippets.

@laptopmutia
Created January 21, 2019 15:20
Show Gist options
  • Save laptopmutia/5f131ccc59646cb948960f11f48ce860 to your computer and use it in GitHub Desktop.
Save laptopmutia/5f131ccc59646cb948960f11f48ce860 to your computer and use it in GitHub Desktop.
how to refactor
<Mutation mutation={SIGN_IN_MUTATION}>
{(signIn) => (
<Formik
onSubmit={(values, FormikActions) => {
signIn({
variables: values
});
FormikActions.setSubmitting(false);
}}
render={form}
/>
)}
</Mutation>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment