Context Provider
useDndContext
The useDndContext
hook can be used within components wrapped in a DndContext
provider to access the internal context of the DndContext
. This can be useful if you’re building your own custom components or presets on top of @dnd-kit/core
.
Make sure you use the useDndContext
hook within a <DndContext>
provider.