Drum Machine: help with refs for dynamically generated components

Hi guys!! So I need serious help on my drum machine project here => https://codepen.io/highness/pen/RvYYje?editors=0010 I hit a wall When I was trying to access the audio tag node using reference. It apparently seems I am not doing it the right way. I strongly feel it is the map that was used to generate each individual drum pad and I don’t have any clue of how to set it up such that ref will bind to each audio tag mapped on. That is my challenge right now and I need help. The project is incomplete here because I wanted to test the ref issue. I believe once I can access the audio tag node then my challenges has been solved.