JSFiddle - React, Tailwind, and code Playground

HTML

<button onclick="return test(this)" type="button"> test </button>

JavaScript

$(document).ready(function() {
        $(document).on("click", "button", function () {
		 	alert("123");
        });
    });