JSFiddle - React, Tailwind, and code Playground

HTML

<h1 onmouseover="go('The dog is in its shed')" onmouseout="clear()">lalala</h1>
    <div id="goy"></div>

JavaScript

$(function() {
    $("h1").on('mouseover', function() {
        $("#goy").text('The dog is in its shed');
    }).on('mouseout', function() {
        $("#goy").text("");
    });
});