I am getting Parameter 'event' implicitly has an 'any' type.ts(7006)
from the code below -
const handleFormSubmit = (event) => {
event.preventDefault();
const email = event.target.elements.email?.value;
const password = event.target.elements.password?.value;
console.log(email, password);
};
Searched around but didn't found any answer which can solve it, any help is appreciated. Thank you :)