mirror of
https://github.com/drawdb-io/drawdb.git
synced 2025-09-19 22:14:50 +00:00
Abstract tasks to a context
This commit is contained in:
6
src/hooks/useTasks.js
Normal file
6
src/hooks/useTasks.js
Normal file
@@ -0,0 +1,6 @@
|
||||
import { useContext } from "react";
|
||||
import { TasksContext } from "../context/TasksContext";
|
||||
|
||||
export default function useTasks() {
|
||||
return useContext(TasksContext);
|
||||
}
|
Reference in New Issue
Block a user