UNPKG

react-beautiful-dnd

Version:

Beautiful and accessible drag and drop for lists with React

8 lines (6 loc) • 226 B
// @flow import type { DraggableDescriptor, DraggableLocation } from '../types'; export default (descriptor: DraggableDescriptor): DraggableLocation => ({ index: descriptor.index, droppableId: descriptor.droppableId, });