sweetalert react code example
Example 1: switch alert
swal({
title: "Good job!",
text: "You clicked the button!",
icon: "success",
button: "Aww yiss!"
});
Example 2: sweet alert react
import swal from 'sweetalert';
Example 3: sweet alert react
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>