sweetalert2 popup is showing in different pages/route in react application
I am developing a react web application and trying to show the popup is my application seller/buyer/admin dashboard after adding or deleting product but sweetalert2 popup is showing in home page instead of my required pages. Mentioning that I have impletemented swal.fire() in required but it is showing in home page only. How do I fix it?