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

Last Updated: 11 June, 2024