useDrag

import {useDrag} from 'muuri-react';

The useDrag hook allow you to know if the Item is being dragged. The Item will re-render on each drag start/end.

Usage ๐Ÿ“–

Just call it inside an Item.

const Item = ({text}) => {
const isDragging = useDrag();
return (
<div className="item">
<div className="item-content">{isDragging ? 'Release me!' : text}</div>
</div>
);
};