JSFiddle - React, Tailwind, and code Playground

HTML

<button onclick="some_click()">click me ! ! !</button>

JavaScript

some_click = function() {
    alert(confirm('???') ? 'true' : 'false');
}