JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://html2canvas.hertzen.com/build/html2canvas.js"></script>
<script src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
<div id="pictureMe"><p>Try this out on JSFiddle right now.</p></div>

JavaScript

$(document).ready(function() {

html2canvas($("#pictureMe"), {
                onrendered: function(canvas) {
                /* What you want to do with the screenshot goes here */
                document.body.appendChild(canvas);
                }
            });
    
});