JSFiddle - React, Tailwind, and code Playground

HTML

<div id="mydiv"></div>

CSS

#mydiv {
    display: block;
    width: 50px;
    height: 50px;
    background-color: black;
}

JavaScript

$('#mydiv').click(function () {
    $(this).css('background-color', 'yellow');
    $(this).off('click');
    $(this).click(function () {
       alert('ya now its the secondary action'); 
    });
});