JSFiddle - React, Tailwind, and code Playground

HTML

<canvas width="1000" height="1000">

JavaScript

var ctx = document.querySelector('canvas').getContext('2d');
ctx.fillStyle = '#f00';
for (var x = 0; x < 1000; ++x) {
    for (var y = 0; y < 1000; ++y) {
        if (Math.random() < 0.5) {
            ctx.fillRect(x, y, 1, 1);
        }
    }
}