JSFiddle - React, Tailwind, and code Playground
HTML
<canvas></canvas>
JavaScript
var e = document.getElementsByTagName('canvas')[0];
var c = e.getContext('2d');
function plot(x,y) {
c.fillRect(x, e.height-y, 5, 5);
}
plot(100,50);
plot(200,100);