JSFiddle - React, Tailwind, and code Playground

by Eugen Sunic

JavaScript

const logoImages = [{
    image: "https://loremflickr.com/320/240?random=1",
    src: "Michelin"
  },
  {
    image: "https://loremflickr.com/320/240?random=2",
    src: "Michelin"
  },
  {
    image: "https://loremflickr.com/320/240?random=3",
    src: "Michelin"
  },
  {
    image: "https://loremflickr.com/320/240?random=4",
    src: "Michelin"
  }
];

const result =logoImages.map(async (companies, index) =>
  await new Promise(res =>
    setTimeout(() => res('nesto'), index * 1000))
  );
	
	console.log(result)