When I click the Delete button on the counter app, the message I get on the Console is “Event Handler Called” undefined, when I should be getting “Event Handler Called” 1, then “Event Handler Called” 2, “Event Handler Called” 3 and so on.
it had nothing to do with my onClick Event. It turns out I was missing the id={counter.id}
in my Counter class. But now my U.I. isn’t correct. I have the id numbers showing which I shouldn’t.
i am facing some problems tooo.
i have tried everything but i couldnt get any result…
when i click delete button nothing hapeened, but when I write console.log(“event handler called”, counter) then it works perfectly…only delete button not working please someone help me…