JSFiddle - React, Tailwind, and code Playground
by Neal
HTML
<!doctype html>
<html>
<head>
<title>Canvas test</title>
</head>
<body>
<script type="text/javascript">
window.onload = function() {
c = document.getElementById('canvas');
ctx = c.getContext("2d");
ctx.fillRect(10,10,10,10);
};
</script>
<canvas id="canvas" height ="100" width = "100"></canvas>
</body>
</html>