An event before onsubmit and handleSubmit #1669
-
I'm trying to figure out an event between the handleSubmit from useForm and my final onSubmit event. If instead of me doing I need to figure out how to put a function between both functions. Thanks for any help. |
Beta Was this translation helpful? Give feedback.
Answered by
bluebill1049
May 22, 2020
Replies: 2 comments
-
This should worked -> |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
bluebill1049
-
Thanks buddy. On point. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This should worked ->
onClick={() => handleSubmit(onSubmit)()}