withDropTarget FunctionConst

Beta  

HOC (Higher-Order Component) that transforms wrapped component into a DropTarget.

withDropTarget<ComponentProps extends { T }, DragDropObject>(Component: React.ComponentType<ComponentProps extends { T }>): DndComponentClass<ComponentProps extends { T } & WithDropTargetProps<DragDropObject>>

Parameter Type Description
Component React.ComponentType<ComponentProps extends { T }> component to wrap.

Returns - DndComponentClass<ComponentProps extends { T } & WithDropTargetProps<DragDropObject>>

Defined in

Last Updated: 13 June, 2024