I’m trying to insert the following into my code but it just doesn’t work, the display doesn’t change when I clikc the Q button for example: User Story #7: When a
.drum-pad is triggered, a string describing the associated audio clip is displayed as the inner text of the
#display element (each string must be unique).
This is my code: https://codepen.io/JGGB/pen/gOmvmQZ?editors=1010
I am trying to do it the same way as this guy does it (adapted to my code, which I understand, his on the other hand is too complex for me right now as he uses things like .map, I’ll try that later): youtube " Drum Machine React Tutorial - Part 3" (starts at 2:10)
Your browser information:
Challenge: Build a Drum Machine
Link to the challenge: