JSFiddle - React, Tailwind, and code Playground

HTML

<div id="import">
    
</div>

CSS

.hidden {display: none;}

JavaScript

function firstThing (){
    var dfd = new jQuery.Deferred();
    $('#import').text("Importing...").append("<img src='http://www.placehold.it/425x240&text=Best' class='hidden' />");

    $('#import img').removeClass("hidden");
    dfd.resolve();
}

$.when( firstThing() ).then(
    setTimeout(function(){ 
        $("#import").fadeOut(5000); 
    }, 3000)
)