Drum Machine - Front End Libraries Certification

Hi guys! I just wanted some feedback on my project.

Heads up, this is not the official version for the tests to be passed.

I would like to refactor the consts inside DrumPad Class, but I don’t know how. I tried defining the variables inside the constructor, inside the render, outside the class… only inside every arrow function worked (I guess it’s because I’m using arrow functions, but otherwise I would have to explicitly bind several this, and I really dislike that approach).

Thank you!

My code so far

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36.

Challenge: Build a Drum Machine

Link to the challenge: