JSFiddle - React, Tailwind, and code Playground
by Ben Watts
HTML
<canvas id="canvas" width="400" height="400">
Canvas was unable to start up.
</canvas>
JavaScript
var canvas = document.getElementById('canvas');
var context = canvas.getContext('2d');
context.fillStyle = "#FF0000";
context.fillRect(0,0,canvas.width,canvas.height);