Quick start: ASP.Net Core 3.1, Entity Framework Core, CQRS, React JS Series — Part 13: HttpPut and HttpDelete requests
Dec 29, 2020
Outline
- Github Repository
- Updating data with Put Request
- Deleting data with Delete Request
- Conclusion
The parent content of this series: Quick start: ASP.Net Core 3.1, Entity Framework Core, CQRS, React JS Series
Github Repository
Updating data with Put Request
Update Project component:
Update Project function:
Form fields needs to be updated by fetched data:
FormFields definition:
Deleting data with Delete Request
Delete Tag component:
Render view:
Conclusion
In this tutorial, “using different lifecycle hooks to fetch data from the server” and “updating the local state” are demonstrated.
Delete action: