withDragSource FunctionConst

Beta

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

withDragSource<ComponentProps extends __type, DragDropObject>(Component: React.ComponentType<ComponentProps extends __type>): DndComponentClass<>

Parameter Type Description
Component React.ComponentType<ComponentProps extends __type> component to wrap.

Defined in

Last Updated: 20 September, 2019