JSFiddle - React, Tailwind, and code Playground
HTML
<div id="container1">
Testing...
</div>
<div id="container2">
</div>
CSS
#container1{
background-color: green;
}
JavaScript
var counter = 0;
$('#container1').on('mouseenter', function(){
$('#container2').text('First mouseenter');
appendingAnotherMouseEnter();
});
function appendingAnotherMouseEnter(){
$('#container1').on('mouseenter', function(){
$('#container2').text(counter);
counter++;
});
}