Looking at the source, it seems that submitForm is used for handleSubmit.
What is the difference between these two use cases?
I used to be ReactNative before, as follows.
handleSubmit: caused an error (related to binding?)submitForm: no errorI want to understand why submitForm was solved, but I could not understand it even by looking at the document.
Could anyone tell me?
(sorry if duplicate it.)
handleSubmit can be passed as is to a form's onSubmit event and preventDefault. submitForm cannot.
@jaredpalmer
thanks. I could understand.
it's close.
Is there any difference for react-native? Which one should I use 馃
@buschco use <Button onPress={handleSubmit} /> as documented here:
Most helpful comment
@buschco use
<Button onPress={handleSubmit} />as documented here:https://jaredpalmer.com/formik/docs/guides/react-native