JSFiddle - React, Tailwind, and code Playground
HTML
<!-- under firefox the onClick element inside a button doesnt works -->
<span onClick="alert('test');">**Working**</span><br>
<button>inside a button <span onClick="alert('test');">**Not working**</span></button>