withDropTarget Function
Deprecated in 2.x. Obsolete.
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: 30 November, 2023