async function is giving error
If you extract the function, (would recommend), to lets say handleSubmit, then you can call it like this: onSubmit={void handleSubmit}
You can also disable the "no-misused-promises" rule in eslint config if it annoys you
You can also disable the "no-misused-promises" rule in eslint config if it annoys you