JSFiddle - React, Tailwind, and code Playground
by flek
HTML
<canvas id="canvas"></canvas>
JavaScript
const canvas = document.getElementById('canvas');
const ctx = canvas.getContext('2d');
ctx.setTransform(
1, 0, 0, 1, -24, 0
);
/* ctx.translate(-24, 0); */
ctx.fillRect(0, 0, 100, 100);