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