Skip to content

Instantly share code, notes, and snippets.

@alejandrosobko
Created November 19, 2018 15:28
Show Gist options
  • Save alejandrosobko/0eee02e1be4f28d9d7641e0f2be10874 to your computer and use it in GitHub Desktop.
Save alejandrosobko/0eee02e1be4f28d9d7641e0f2be10874 to your computer and use it in GitHub Desktop.
export default (props: IDraggableItem) => {
const className = `dnd-number size-${props.value}`;
return (
<DraggableItemWrapper draggableId={props.value}
index={props.itemPosition}
className={className}>
<div>{props.content}</div>
</DraggableItemWrapper>
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment