JSFiddle - React, Tailwind, and code Playground
HTML
<div class='click-me'>click me here!</div>
<br /><br />
<div class='more-click-me'>lets write this</div>
</body>
JavaScript
var arc={};
arc.handler={
background_color:'#8DBC8F',
console_this: function(str){
alert('lets write this to the console ' + str + ' ' + this.background_color);
}
}
$(document).ready(function(){
$('.more-click-me').on('click', arc.handler.console_this('here'));
$('.more-click-me').on('click', function(){
arc.handler.console_this('blue');
});
});