JSFiddle - React, Tailwind, and code Playground
HTML
<!-- 1. Load the resrc.js library -->
<script src="http://use.resrc.it/0.8"></script>
<!-- 2. On DOM Ready, Execute resrc -->
<script>
resrc.ready(function() {
var defaults = {
resrcOnPinch: true,
pixelRounding: 1,
resrcOnResizeDown: true
};
resrc.options = resrc.extend(resrc.options, defaults);
resrc.resrc();
});
</script>
<body>
<img data-src="http://www.your-site.co/image.jpg" class="resrc" />
</body>
CSS
.resrc {
width: 100%
}