There are errors in examples you use [‘on’ + e.type] so event method should be click, not onclick.
Jakub Jankiewicz
1

what are you talking about? which example? handleEvent intercepts all events, so if you have a method named onclickand the event name is click, the method will be invoked as this.onclick(evt)

Have you tried on a browser the example?

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.