JSFiddle - React, Tailwind, and code Playground
HTML
<canvas id="myCanvas" width="3000" height="1500">
Browser does not support the HTML5 canvas tag.</canvas>
JavaScript
var c = document.getElementById("myCanvas");
var ctx = c.getContext("2d");
// Blue rectangle
ctx.beginPath();
ctx.lineWidth = "5";
ctx.strokeStyle = "blue";
ctx.line(50,50;
ctx.stroke();