pass FormData to startTransition without using useState
Unanswered
Cimarrón Uruguayo posted this in #help-forum
Cimarrón UruguayoOP
Hi, I have a from with a button with onClick to startTransition and it calls handleSubmit. Currently I am using useState to get all the values from the form.
onClick={() => startTransition(handleSubmit)} Is it possible to pass FormData to handleSubmit at startTransition?