JSFiddle - React, Tailwind, and code Playground

HTML

<div id="myDiv"></div>

CSS

#myDiv {
    width: 200px;
    height: 200px;
    background-color: green;
}

JavaScript

console.clear();

var myDiv = document.getElementById('myDiv');

function evt(event, param1) {
    console.log(event + ' and ' + param1)
}

myDiv.addEventListener('click', evt.call(this, event, 'hello'));