JSFiddle - React, Tailwind, and code Playground

by catfood

HTML

<canvas width="500" height="500" id="canvas"></canvas>

JavaScript

var canvas = document.getElementById('canvas');
var ctx = canvas.getContext('2d');
ctx.fillStyle = 'rgb(155, 187, 89)';
ctx.fillRect(25,25,100,100);
ctx.strokeStyle = '#ff0000';
ctx.strokeRect(225,225,100,100);