qtsd-fork
Version:
Do not use this please
34 lines (20 loc) • 997 B
Markdown
<img width="1280" alt="capture d ecran 2018-09-11 a 22 08 09" src="https://user-images.githubusercontent.com/6483446/45384770-3b45e080-b60f-11e8-973c-ee112d8a4129.png">
[](https://badge.fury.io/js/react-dnd-mouse-backend)
Mouse Backend for React Drag and Drop library http://gaearon.github.io/react-dnd
```js
import { DragDropContext } from 'react-dnd'
import MouseBackEnd from 'react-dnd-mouse-backend'
const App = {...}
const AppContainer = DragDropContext(MouseBackEnd)(App)
```
First, prepare the playground:
```sh
cd example;
yarn; yarn start
```
Then head to `http://localhost:3030/` to start some fun drag and dropping.
Inspired by [HTML5 Backend](https://github.com/gaearon/react-dnd-html5-backend) & [Touch Backend](https://github.com/yahoo/react-dnd-touch-backend) to support only mouse events, which work much better in some cases, like svg.