JSFiddle - React, Tailwind, and code Playground

HTML

<canvas>

CSS

canvas {
    width: 100px;
    height: 200px;
}

JavaScript

var ctx = document.querySelector('canvas').getContext('2d');
ctx.fillRect(10, 10, 50, 50);