JSFiddle - React, Tailwind, and code Playground

HTML

<input id="addImage" type="button" value="Add image"/>
<div id="IndicatorImgDiv">
</div>

JavaScript

$("#addImage").click(function(){
    if($("#IndicatorImgDiv img").length == 0){
        $('#IndicatorImgDiv').append($('<img />').attr("src", "http://www.thepointless.com/images/reddot.jpg"));
    }
});