JSFiddle - React, Tailwind, and code Playground

by Aljohn De Guzman

HTML

<canvas id="myCanvas" width="200" height="100" style="border:1px solid #000000;">
</canvas>

JavaScript

var first = document.getElementById("myCanvas");
  var first_context = first.getContext("2d");
  first_context.fillRect(50, 25, 150, 100);