withDragSource FunctionConst
Beta
HOC (Higher-Order Component) that transforms wrapped component into a DragSource.
withDragSource<ComponentProps extends object, DragDropObject>(Component: React.ComponentType<ComponentProps extends object>): DndComponentClass<>
Parameter | Type | Description |
---|---|---|
Component | React.ComponentType<ComponentProps extends object> | component to wrap. |
Defined in
Last Updated: 23 April, 2020