JSFiddle - React, Tailwind, and code Playground
HTML
<img src="http://kachibito.net/wp-content/uploads/2012/05/simpler000.jpg">
JavaScript
if (window.devicePixelRatio > 1)
$('img').each(function() {
var t = $(this);
t.attr('src', t.attr('src').replace(/(\.[a-z]+)$/i, "@2x$1"));
});