Created
October 9, 2018 17:31
-
-
Save anthonyec/c9903ba78e1bb4f9a17c4f9352ef2adb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
handleDrop(evt, props) { | |
const itemToChange = this.state.find(id === props.id) | |
this.setState({ | |
items: itemTOChange | |
}); | |
} | |
<DragTarget onDrop={this.handleDrop}> | |
</DragTarget> | |
<DragSource id="wow"> | |
</DragSource> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment