Skip to content

Commit

Permalink
Don't panic
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon committed Nov 20, 2014
1 parent 6fd0bfa commit f11d9f4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,17 @@ These types are just string constants that are used to match compatible drag sou
Let's make a very simple draggable component that, when dragged, represents `IMAGE`:

```javascript
/**
* Don't panic!
* Examples will use ES6 syntax.
*
* var { DragDropMixin } = require('react-dnd');
*
* is equivalent to this in ES5:
*
* var DragDropMixin = require('react-dnd').DragDropMixin;
*/

var { DragDropMixin } = require('react-dnd'),
ItemTypes = require('./ItemTypes');

Expand Down

0 comments on commit f11d9f4

Please sign in to comment.