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