I know this has been asked multiple times, but I can't get a good solution. React Ref's don't seem to do it, and giving the button & form the same id only seem to submit the form via url, which is buggy in a SPA.
Any solutions?
You can use a ref and call submitForm(). Otherwise you must lift <Formik> higher up your react tree
Most helpful comment
You can use a ref and call submitForm(). Otherwise you must lift
<Formik>higher up your react tree