withDragSource FunctionConst

Beta  

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

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

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

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

Defined in

Last Updated: 13 June, 2024