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.