JSFiddle - React, Tailwind, and code Playground

Bootstrap-Notify Events?

HTML

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.4/css/bootstrap.min.css">
<script src="https://rawgit.com/mouse0270/bootstrap-notify/b6105dffb2b0a6bf16562a1d67ce2686c3b28951/bootstrap-notify.min.js"></script>

JavaScript

$(document).ready(function() {
  //Notifications
  var welcome = $.notify({
    title: "<strong>Test notification</strong><br>",
    message: "If you need help or some information, click here!"
  }, {
    type: "info",
    onClose: test()
  });
});

function test() {
  alert("onClose");
}