API Reference > ui-components > Tree > DEPRECATED_withTreeDragDrop DEPRECATED_withTreeDragDrop Function Deprecated Beta A HOC component that adds drag and drop functionality to the supplied tree component. DEPRECATED_withTreeDragDrop<P extends TreeProps, DragDropObject extends TreeDragDropType>(TreeComponent: ComponentType<P>): React.ComponentType<P & TreeDragDropProps<DragDropObject>> Parameter Type Description TreeComponent ComponentType<P> Returns - React.ComponentType<P & TreeDragDropProps<DragDropObject>> Defined in ui/components/src/ui-components/tree/deprecated/hocs/withDragDrop.tsx Line 44 Last Updated: 12 June, 2024