In EMACSsCRIPT 6 code with React, if we use
var raxios = axios.get(some_server_link).then(function()(response) {
.....
use response data
....
});
I notice that I can only use response inside the function. Is there any way to be able to use response's info out of this function scope?