The problem is that although I have attached events (e.g. handleClear) in the class below, however, when I check the onClick event in the button dom, it shows an empty metho