Like `react-beautiful-dnd`, without the ugly code (ehem render props).
npm install use-beautiful-dnd> Like react-beautiful-dnd, without the ugly code (ehem render props).
> Same as react-beautiful-dnd, except we handle the render props for you
``jsx
import { DragDropContext } from 'react-beautiful-dnd'
import { Droppable, Draggable, useDraggableContext } from 'use-beautiful-dnd'
function Demo() {
return (
)
}
function Component() {
const { snapshot, rubric } = useDraggableContext()
// ...
}
``