JSFiddle - React, Tailwind, and code Playground

HTML

<img src="http://lorempixel.com/400/200/">
    
<button type="button">Refresh</button>

JavaScript

$('button').click(function() {
    var unique = $.now();
 	$('img').attr('src', 'http://lorempixel.com/400/200/?' + unique);   
});