'Having issues with isDragging attribute in dnd

I use typescript for my project. I am trying to make some css effect (color change while dragging) while dragging a column. But I am getting errors while using isDragging attribute. Could any help me sort it out?

The error is: Property 'isDragging' does not exist on type 'DetailedHTMLProps

I know I am attempting to add the attribute isDragging to div. That is not a supported attribute for HTMLElement. That is why it gives such an error.

My question is how can I make it workable for my code.

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source