JSFiddle - React, Tailwind, and code Playground
HTML
<canvas id="cnv"></canvas>
JavaScript
var ctx = document.getElementById("cnv").getContext("2d");
ctx.rect(10, 10, 200, 100);
ctx.scale(10, 10);
ctx.fillStyle = "red";
ctx.strokeStyle = "green";
ctx.transform(1, 1, 1, 1, 0, 0);
ctx.fill();
ctx.stroke();