with-dnd-context: a HOC solution for backend reusage issue in react-dnd
Why
Cannot have two HTML5 backends at the same time
Basic Usage
{} MyComponent;
Installation
npm i with-dnd-context --save
API
// backendFactory is optional and default to react-dnd-html5-backendconst withDndContext: WrappedComponent: React.ComponentType<any> backendFactory?: BackendFactory => ReactComponentType<any>;