JSFiddle - React, Tailwind, and code Playground

HTML

<div></div>

CSS

div {
    height: 50px;
    width: 100px;
    background:green;
    display:inline-block;
    margin: 100px;
}

JavaScript

function monitorMouseOut() {
        $(window).on("mouseout", function (e) {
            console.log("PASS");
        });
    }

monitorMouseOut();