MCPcopy Create free account
hub / github.com/codemistic/Web-Development / deletion

Function deletion

Django_React_Todo/frontend/src/pages/Tasks.jsx:14–21  ·  view source on GitHub ↗
(url, body)

Source from the content-addressed store, hash-verified

12import "./Tasks.scss";
13
14const deletion = (url, body) =>
15 fetch(url, {
16 method: "DELETE",
17 headers: {
18 "Content-Type": "application/json",
19 },
20 body: JSON.stringify(body),
21 });
22
23const Tasks = ({ postID, backButton, postTitle, fetcher }) => {
24 const [titlee, setTitlee] = useState(postTitle);

Callers 1

TasksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected