[React] 비동기 작업, HTTP
Promise.all(처리할 비동기 작업의 배열)function App() { useEffect(() => { Promise.all([ fetch(url).then(response => response.json()), fetch(url2).then(response => response.json() ]).then(function([response1, response2]) => { console.log("response 1: ", response1); console.log("response 2: ", response2); }); }, []);}-> Promise.all을 이용해 두가지 fetch를 동시에 실행-> response 또한 배열로 반환되기 때..