Javascript – Next.js: `onSubmit` not executing callback function
In my Next.js module, I have a form declared as follows: <form onSubmit = {() => { async() => await getCertificate(id) .then(async resp => await resp.json()) .then(data => console.log(data)) .catch(err => console.error(err)) console.log("getCertificate completed") }}> Function getCertificate() is defined in…