JSFiddle - React, Tailwind, and code Playground

HTML

<p>
  <a href="#">Foo Bar</a>
  <img src="http://i.imgur.com/fEdYXvJ.jpg" width="48" height="64"/>
  <a href="#"><img src="http://i.imgur.com/I0cta.png" width="64" height="64"/></a>
</p>

JavaScript

var timestamp = '?timestamp=123';
$('img').each(function () {
  if ($(this).attr('src')) {
    $(this).attr('src', ($(this).attr('src') + timestamp));
  }
});