'How to delete a specific item from a database when custom popup confirmation button will be cliked using react and tailwind

I'm created app where user can edit and delete items. Now i want that when user will clik the delete button a popup will be shown an user can either cancel or delete by confirming. How to do this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source