Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/andrioid/dnd-prototype. Very slim React wrapper for drag-and-drop, uses touch polyfill
Something went wrong. Try again.
1234567891011import { useContext } from "react";import { TasksContext } from "./TasksContext";
export function useTasksContext() { const context = useContext(TasksContext); if (context === undefined) { throw new Error("useTasksContext must be used within a TasksProvider"); } return context;}