JSFiddle - React, Tailwind, and code Playground

HTML

<input type="text" />

JavaScript

$(document).ready(function(){
    //This will work if you use this code instead:
    //$("input").blur(function() { alert("Out"); });
    $("input").blur(doIt());
});
function doIt() {
     alert("Out");   
}