I'm trying to do something like this:
const axios = require('axios');
function load() {
const response = axios.get('https://...');
return response.data;
}
I can't make my function async
. I need it to be declared exactly this way and return the data loaded from the URL via GET request.