JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://raw.githack.com/Nycto/PicoModal/master/src/picoModal.js"></script>
<a href='#' id='modal'>Create Modal</a>
JavaScript
var modal = picoModal("Ah, the pitter patter of tiny feet in huge combat boots.");
document.getElementById("modal").addEventListener("click", function(){
modal.show();
});