JSFiddle - React, Tailwind, and code Playground

HTML

<canvas id="c1"></canvas>

JavaScript

function draw(el) {
    var canvas = el;
    var ctx = canvas.getContext("2d");
    ctx.strokeRect(0, 0, 50, 1000);
    for(var y = 10; y < 1000; y += 10){
        ctx.moveTo(0, y);
        ctx.lineTo(25, y);
    }
    ctx.stroke();
    ctx.closePath();
}
Ext.onReady(function() {
    draw(document.getElementById('c1'));
})