I have created Comment structure before with delete button. Now i need to connect it to backend, in order to make delete button functional. Also, user can only delete its own posts.
Steps:
1) Add backend end point for delete comment in frontend structure as a async function.
2) Use authentication token for the delete comment request
3) Use useEffect hook in order to re-render page in order to view updated Comment structure
I have created Comment structure before with delete button. Now i need to connect it to backend, in order to make delete button functional. Also, user can only delete its own posts.
Steps:
1) Add backend end point for delete comment in frontend structure as a async function. 2) Use authentication token for the delete comment request 3) Use useEffect hook in order to re-render page in order to view updated Comment structure
Reviewer: @BeratDamar Deadline: 04.12.2022 23.59