So, i just finished nextjs learn xourse. Before going deeper into my question, i think the solution lies into using the
useActionState
React hook. But for some reason i got the
module react does not include hook useActionState
I tried upgrading react, npm, nextjs. Nothing worked so i gave up on it. I think if i can use that,i will have the answer to my question.
Anyway, back to my question.
How do i tell my frontend that the form (e.g. login form) is currently being submitted and show a loading or something that disables multiple submit button presses?