JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://pdfmake.org/pdfmake.js"></script>
<script src="https://raw.githubusercontent.com/bpampuch/pdfmake/master/build/vfs_fonts.js"></script>
JavaScript
var docDefinition = { content: 'This is an sample PDF printed with pdfMake' };
pdfMake.createPdf(docDefinition).open();