JSFiddle - React, Tailwind, and code Playground

by Voga

HTML

<span onclick="alert('Boem')">
    <button id="test1">test</button>
</span>

JavaScript

$('#test1').trigger('click');