Challenge: Create a Button to Delete Unanswered Questions
Explore how to build a functional delete button in React that removes unanswered questions by making DELETE requests to an ASP.NET Core backend. Learn to integrate API calls with React components, handle state updates, and implement a delayed page reload to reflect changes dynamically.
We'll cover the following...
We'll cover the following...
Requirements
In this challenge, we want you to implement a new Delete button within the <li> tags on our main webpage. This button should serve the purpose of removing unanswered questions that are currently displayed on the web page. We aim to design this button component in a manner that triggers a call to the DELETE API, which has already been established in our QuestionController.cs file located in the ...