When dealing with elements that are dynamically generated in Javascript, event listeners won't work as the element won't exist when your querySelector is run. To solve this, you can use event delegation to listen for events on the parent element, and then filter these by selector to target the element you want.
Code: https://codesandbox.io/s/event-delega...
Music: Manhattan by Dyalla
Enquiries/Questions: [email protected]