JSFiddle - React, Tailwind, and code Playground
HTML
<div id="clock">
</div>
CSS
#clock{
width: 250PX;
height: 250px;
border: 1px solid gray;
}
JavaScript
var canvas = document.createElement("canvas");
canvas.height = 250;
canvas.width = 250;
var ctx = canvas.getContext("2d");
ctx.beginPath();
ctx.arc(125, 125, 70, 0, 2 * Math.PI);
ctx.stroke()
ctx.closePath();
window["clock"].appendChild(canvas);