import React, { useCallback } from 'react'; import { Draggable } from 'react-beautiful-dnd'; const DragSorted = (props) => { // using useCallback is optional const onBeforeCapture = useCallback(() => {}, []); const onBeforeDragStart = useCallback(() => {}, []); const onDragStart = useCallback(() => { debugger; }, []); const onDragUpdate = useCallback(() => {}, []); const onDragEnd = useCallback(() => {}, []); return ( {(provided, snapshot) => (
{props.children}
)}
); }; export default DragSorted;