JSFiddle - React, Tailwind, and code Playground

by anothernick

HTML

<canvas id="canvas" width="480" height="320"></canvas>

JavaScript

$(document).ready(function() {
    var canvas = document.getElementById('canvas');
    var context = canvas.getContext('2d');

    
    
    // Draw the Foreground Canvas
    setTimeout(function(){
        
       context.fillRect(0, 0, 100, 100);
    }, 15);
        
});