JSFiddle - React, Tailwind, and code Playground
HTML
<button>click</button>
JavaScript
$('button').click( function () {
if (alert( 'Are you sure? ' ) ) {
if (alert( 'want to notify users? ' ) ) {
}
}
})