JSFiddle - React, Tailwind, and code Playground
by mehulkar
HTML
<img src="none" id="foo" alt=""></img>
Hi
JavaScript
$(document).ready(function() {
var url = 'https://i.imgur.com/bTaDhpy.jpg'
var file = $.get(url);
file.then(function(data) {
$('#foo').attr('src', url);
});
});