Skip to content

Instantly share code, notes, and snippets.

@bryceosterhaus
Created April 15, 2016 21:08
Show Gist options
  • Save bryceosterhaus/458ca389b9d8985af3e8e6e41993e2ce to your computer and use it in GitHub Desktop.
Save bryceosterhaus/458ca389b9d8985af3e8e6e41993e2ce to your computer and use it in GitHub Desktop.
Args should each be on their own line
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