Created
April 15, 2016 21:08
-
-
Save bryceosterhaus/458ca389b9d8985af3e8e6e41993e2ce to your computer and use it in GitHub Desktop.
Args should each be on their own line
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
export default DragDropContext(HTML5Backend)( //Args should each be on their own line (args on start line): DragDropContext(...) | |
DropTarget(NativeTypes.FILE, specObj, collectFunc)( //Args should each be on their own line (args on start line): DropTarget(...) | |
connect( | |
state => ({dirtyState: state.get('dirtyState')}), | |
{ | |
addDirtyState, | |
removeDirtyState | |
} | |
)(PostBase) | |
) | |
); | |
vs | |
const ddContext = DragDropContext(HTML5Backend); | |
const ddTarget = DropTarget(NativeTypes.FILE, specObj, collectFunc); | |
export default ddContext( | |
ddTarget( | |
connect( | |
state => ({dirtyState: state.get('dirtyState')}), | |
{ | |
addDirtyState, | |
removeDirtyState | |
} | |
)(PostBase) | |
) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment