JSFiddle - React, Tailwind, and code Playground
HTML
<div></div>
JavaScript
function something (){
$('input').hover(function() {
$(this).val("aaa");
}, function() {
$(this).val("");
});
}
$("div").append("<input/>");
something();