JSFiddle - React, Tailwind, and code Playground
HTML
<canvas id='cn'></canvas>
JavaScript
var canva = document.getElementById('cn'),
ctx = canva.getContext('2d');
canva.width = 300;
canva.height = 300;
ctx.fillStyle = 'hsv(132,34,98)';
ctx.fillRect(0, 0, 300, 300);