JSFiddle - React, Tailwind, and code Playground
by Rob Crowther
HTML
<canvas id="c1" width="200" height="200"></canvas>
JavaScript
var c1 = $('#c1');
var ctx1 = c1[0].getContext('2d');
ctx1.fillRect(25,25,50,50);
ctx1.fillRect(125,25,50,50);
ctx1.fillRect(25,125,50,50);
ctx1.fillRect(125,125,50,50);