JSFiddle - React, Tailwind, and code Playground
HTML
<body>
<div id="canvas"></div>
</body>
CSS
#canvas{
border: 2px solid #000000;
overflow: hidden;
}
JavaScript
function update(){
var ctx = $("#canvas")[0].getContext('2d');
ctx.fillStyle = "#A68064";
ctx.fillRect(0,0,900, 450);
}
$(document).ready(function() {
$("#canvas").width(900);
$("#canvas").height(450);
update();
setInterval(update, 100);
});