Skip to content

Commit f11d9f4

Browse files
committed
Don't panic
1 parent 6fd0bfa commit f11d9f4

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,17 @@ These types are just string constants that are used to match compatible drag sou
8787
Let's make a very simple draggable component that, when dragged, represents `IMAGE`:
8888

8989
```javascript
90+
/**
91+
* Don't panic!
92+
* Examples will use ES6 syntax.
93+
*
94+
* var { DragDropMixin } = require('react-dnd');
95+
*
96+
* is equivalent to this in ES5:
97+
*
98+
* var DragDropMixin = require('react-dnd').DragDropMixin;
99+
*/
100+
90101
var { DragDropMixin } = require('react-dnd'),
91102
ItemTypes = require('./ItemTypes');
92103

0 commit comments

Comments
 (0)