Back to React Dnd

useDragDropManager

packages/docsite/markdown/docs/03 Using Hooks/useDragDropManager.md

16.0.0516 B
Original Source

New to React DnD? Read the overview before jumping into the docs.

useDragDropManager

This hook provides a user with access into the DnD system. The DragDropManager instance is a singleton created by React DnD that contains access to state, monitors, the backend, etc..

jsx
import { useDragDropManager } from 'react-dnd'

function Example() {
  // The manager provides access to all of React DnD's internals
  const dragDropManager = useDragDropManager()

  return <div>Example</div>
}