JSFiddle - React, Tailwind, and code Playground
by vietean
HTML
<canvas width="100%" height="100%" id="view">
</canvas>
JavaScript
var canvas = document.getElementById("view");
var ctx = canvas.getContext("2d");
ctx.fillStyle = "#FF0000";
ctx.fillRect(0,0,100,50);