JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://cdn.jsdelivr.net/sweetalert2/6.5.6/sweetalert2.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/sweetalert2/6.5.6/sweetalert2.min.css">
<button id="bot">Try me!</button>

CSS

body {
  font-family: 'Open Sans', sans-serif;
}
p {
  line-height: 25px; margin: 30px auto;
  font-size: 17px; font-weight: 300;
  color: #848d94;
  
}
button {
  background-color: #3085d6; color: #fff;
  border: 0; box-shadow: none; border-radius: 3px;
  font-size: 17px; font-weight: 500;
  padding: 15px 35px; margin: 26px 5px 0;
  cursor: pointer;
  white-space: nowrap;
}

JavaScript

document.getElementById("bot").click = 
{
  swal(
    'Oops...',
    'Something went wrong!',
    'error'
)
}