Skip to content

Instantly share code, notes, and snippets.

@laptopmutia
Created January 21, 2019 15:20
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 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