JSFiddle - React, Tailwind, and code Playground

HTML

<audio id="a1" autoplay>
    <source...

CSS

$(function(){
    var audio1 = document.getElementById('a1');
    $(audio1).bind('ended',function(){
        this.play();
    });
});