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
  • 18,263
  • 7
  • 55
  • 75
dthree
  • 19,847
  • 14
  • 77
  • 106

0 Answers0