JSFiddle - React, Tailwind, and code Playground

HTML

<link rel="stylesheet" href="http://tristanedwards.me/u/SweetAlert/lib/sweet-alert.css">
<script src="http://tristanedwards.me/u/SweetAlert/lib/sweet-alert.js"></script>
<a id="btnShowAlert" href="index.html">
    Show Sweet Alert
</a>

JavaScript

$("#btnShowAlert").click(function() {
    sweetAlert(
        "Oops...", "Something went wrong!", "error"
    );
});