JSFiddle - React, Tailwind, and code Playground

by Daniel Tan

HTML

<img id="myImage" src="http://placehold.it/150x150">

JavaScript

// As a jQuery method: $('#myImage').attr('draggable', false);
document.getElementById('myImage').draggable = false;