So holen Sie Daten aus einer API -Async und warten Sie
async function fetchData() {
try {
const result = await axios.get("https://randomuser.me/api/")
console.log(result.data));
} catch (error) {
console.error(error);
}
}
Mysterious Macaque