JSFiddle - React, Tailwind, and code Playground

by Abdul Ahmad

JavaScript

function doAsync() {
	return new Promise((res, rej) => {
  	setTimeout(() => {
    	console.log('bla');
      res();
    }, 3000);
  });
}

doAsync();