API Reference > ui-components > DragDrop > withDropTarget withDropTarget Function Deprecated Beta HOC (Higher-Order Component) that transforms wrapped component into a DropTarget. withDropTarget<ComponentProps extends { T }, DragDropObject>(Component: ComponentType<ComponentProps>): DndComponentClass<, ComponentProps & WithDropTargetProps<DragDropObject>> Parameter Type Description Component ComponentType<ComponentProps> component to wrap. Returns - DndComponentClass<, ComponentProps & WithDropTargetProps<DragDropObject>> Defined in ui/components/src/ui-components/dragdrop/withDropTarget.tsx Line 43 Last Updated: 12 June, 2024