JSFiddle - React, Tailwind, and code Playground

by NekR

HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>22 хода</title>
<script>
  window.onload = function() {

   var canvas = document.getElementById('game'),
    gl = canvas.getContext('2d');
    gl.clearRect(0, 0, canvas.width, canvas.height); //clear canvas
    gl.beginPath();//set position to start, in this example is not needed 
    gl.fillStyle = '#000000'; // init the color of shapes
    gl.fillRect(50, 50, 50, 50); // draw the rect 50x50

  }  
</script>
</head>
<body>
<canvas id="game" width="400" height="400">
</canvas>
</body>
</html>