JSFiddle - React, Tailwind, and code Playground

by El Khal

HTML

<div id="dropZone" style="width:200px;height:200px;background-color:red"></div>

JavaScript

var dropZone = document.getElementById('dropZone');
dropZone.addEventListener('dragover', function(e) {
  e.stopPropagation();
  e.preventDefault();
  dropZone.style.background = "blue";
});