I have two functions but do not have their argument and i just want to run the two functions on a button's onClick method.
I know the following code works on react.
onClick={handleSubmit}
Is it possible to do something like
onClick={handleSubmit; doSomethingElse;}
Inside the onClick method i need to call the Formik's handleSubmit method. Note: I am trying to call the handleSubmit method from a button outside the form.
React Formik bind the external button click with onSubmit function in <Formik>
As explained in this article i can just onClick={handleSubmit}
do this to call the function. But i also need to call another function on the same onClick function. How can i call both of them from the same onClick?