react-dnd
Version:
Drag and Drop for React
17 lines (14 loc) • 330 B
text/typescript
import type { DragDropManager } from 'dnd-core'
import { createContext } from 'react'
/**
* The React context type
*/
export interface DndContextType {
dragDropManager: DragDropManager | undefined
}
/**
* Create the React Context
*/
export const DndContext = createContext<DndContextType>({
dragDropManager: undefined,
})