sweet alert with confirmation code example
Example 1: sweet alert react
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
Example 2: confirm sweet alert
swal("Are you sure?", { dangerMode: true, buttons: true,});
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
swal("Are you sure?", { dangerMode: true, buttons: true,});