JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://raw.githack.com/Nycto/PicoModal/master/src/picoModal.js"></script>
JavaScript
picoModal(
"<p>Ah, the pitter patter of tiny feet in huge combat boots.<p>"
+ "<p><a href='#' class='dismiss'>Dismiss</a></p>"
).afterCreate(function(modal){
modal.modalElem().getElementsByClassName("dismiss")[0]
.addEventListener('click', modal.close);
}).show();