Hello! I’m close to cracking the drum machine, but failing user story 7. You can see my code on CodePen below. No CSS yet, so excuse the way it looks!
I think it’s failing because I’m not updating the currentDrum correctly. I’m trying to switch from classes to hooks in React. When I console log (line 66) I get a list of all of the drums pressed so far. Is it just not updating fast enough?
Challenge: Front End Development Libraries Projects - Build a Drum Machine