JSFiddle - React, Tailwind, and code Playground

by jcubed111

HTML

<canvas id=main></canvas>

CSS

canvas{
    background: #eee;
}

JavaScript

const ctx = document.getElementById('main').getContext('2d')

const width = 1.2;
for(let i = 0; i < 200; i++) {
	const left = Math.round(width * i);
    const right = Math.round(width * (i + 1));
	ctx.fillRect(left, 200, right - left, -100-Math.random() * 100);
}