JSFiddle - React, Tailwind, and code Playground

by midesowunmi

HTML

<input type="button" value="click" class="btn" />

CSS

.btnclick{
    border: 2px solid #f22;
    font-size: 14px;
}
.btn {
    background-color: #2f2;
}

JavaScript

$ = function(){ alert ('$ is not jQuery!'); };
  (function($){
     $('input').on('click', function(e){
        $(e.target).addClass('btnclick');
        
      })

  })(jQuery);