79326472

Date: 2025-01-03 12:37:44
Score: 0.5
Natty:
Report link

The DragEvent type you're using comes from the DOM API.In React, you should use React.DragEvent instead of DragEvent for event handlers like onDragOver:

const handleDragOver = (e: React.DragEvent<HTMLTableRowElement>) => {
 e.preventDefault();
};

<tr onDragOver={handleDragOver}></tr>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Marwen Jaffel