We've added in creating and editing posts. Now it's time to be able to delete them.
We will use the create button that we already have to create our delete button. Just need to adding in the conditional for only being able to delete existing posts, create an isDeleting
variable, and replace the isUpdating
variables with isDeleting
.