JSFiddle - React, Tailwind, and code Playground
by Ronny
HTML
<p><strong>notice:</strong> never leave an img tag with an empty src attribute - Firefox will load the same page twice</p><p>
Read <a href="http://www.nczonline.net/blog/2009/11/30/empty-image-src-can-destroy-your-site/">NCZ</a> or <a href="http://geekswithblogs.net/bcaraway/archive/2007/08/24/114945.aspx">This guy</a>
<hr />
<img id="myImage" src="hello.jpg">
JavaScript
var src = (true == true) ? 'goodbye.jpg' : 'hello.jpg';
$('#myImage').attr('src', src);
console && console.log(src);