JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" id="link"/>
<div id="thumbs"></div>
JavaScript
$("#link").on("paste", function(){
$("#thumbs").empty().html("<p>loading</p>");
var postData = {
'url' : $("#link").val()
};
$.ajax({
type: "POST",
url: "/echo/json/",
success: function(msg){
$("#thumbs").html( "Data Saved: " );
}
});
});