JSFiddle - React, Tailwind, and code Playground
HTML
<button onclick="some_click()">click me ! ! !</button>
JavaScript
some_click = function() {
alert(confirm('???') ? 'true' : 'false');
}
<button onclick="some_click()">click me ! ! !</button>
some_click = function() {
alert(confirm('???') ? 'true' : 'false');
}