JSFiddle - React, Tailwind, and code Playground
HTML
<!DOCTYPE html>
<html>
<body>
<canvas id="myCanvas" width="5000" height="5000" style="border:1px solid #d3d3d3;">
Your browser does not support the HTML5 canvas tag.</canvas>
</body>
</html>
JavaScript
var width = 5000
var height = 5000
var c = document.getElementById("myCanvas");
var ctx = c.getContext("2d");
for (let i=0; i<width; i++){
for (let j=0; j<height; j++){
ctx.fillRect(i, j, 1 ,1);
}
}