JSFiddle - React, Tailwind, and code Playground

HTML

<a href="#" onclick="window.handleClick()">click here for an image that doesn't reload on hard refresh of page</a>
<div id="container"></div>

JavaScript

window.handleClick = function() {
    $("#container").html("<img src='http://www.google.com/textinputassistant/tia.png'>");
}