JSFiddle - React, Tailwind, and code Playground

JavaScript

Promise.all([
    fetch("/?1").then(res => res.text()),
    fetch("/?2").then(res => res.text())
]).then(([one, two]) => {
    console.log(one, two);
});