0

I was reading up on react-dnd and it offers code examples in es5, es6 and es7. Under the es7 example, it give the following code:

@DragSource(ItemTypes.CARD, cardSource, (connect, monitor) => ({
  connectDragSource: connect.dragSource(),
  isDragging: monitor.isDragging()
}))

What is this @ about? Never seen it and can't find it under googling any sort of es7 references.

Sebastian Simon
  • 16,564
  • 7
  • 51
  • 69
dthree
  • 18,488
  • 11
  • 69
  • 103

0 Answers0