Skip to content

Commit

Permalink
created stub function to better reproduce reality
Browse files Browse the repository at this point in the history
  • Loading branch information
diegofaria committed Jan 25, 2017
1 parent 36926b5 commit b5aded4
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions docs/00 Quick Start/Overview.md
Expand Up @@ -176,12 +176,12 @@ var DragSource = require('react-dnd').DragSource;
var DropTarget = require('react-dnd').DropTarget;
var flow = require('lodash/flow');

/* ... */

var YourComponent = React.createClass({
return this.props.connectDragSource(this.props.connectDropTarget(
/* ... */
))
render() {
return this.props.connectDragSource(this.props.connectDropTarget(
/* ... */
))
}
});

module.exports = flow(
Expand All @@ -194,13 +194,13 @@ module.exports = flow(
import { DragSource } from 'react-dnd';
import flow from 'lodash/flow';

/* ... */

class YourComponent {
const { connectDragSource, connectDropTarget } = this.props
return connectDragSource(connectDropTarget(
/* ... */
))
render() {
const { connectDragSource, connectDropTarget } = this.props
return connectDragSource(connectDropTarget(
/* ... */
))
}
}

export default flow(
Expand All @@ -212,15 +212,15 @@ export default flow(
```js
import { DragSource } from 'react-dnd';

/* ... */

@DragSource(/* ... */)
@DropTarget(/* ... */)
export default class YourComponent {
const { connectDragSource, connectDropTarget } = this.props
return connectDragSource(connectDropTarget(
/* ... */
))
render() {
const { connectDragSource, connectDropTarget } = this.props
return connectDragSource(connectDropTarget(
/* ... */
))
}
}
```
-------------------
Expand Down

0 comments on commit b5aded4

Please sign in to comment.