JSFiddle - React, Tailwind, and code Playground

HTML

<div id="imgbox"></div>

JavaScript

for(var i=1;i<375/*the max is 374 images*/;i++){
  var img = new Image();
  
  $( img ).load(function() {
      if(img.width != 0){
         $(img).appendTo('#imgbox');
      }
  });
  img.src = "https://api.jquery.com/jquery-wp-content/themes/jquery/images/bullet.png?i=" + i;
}