Me gustaría poder sacar el valor de dentro del fetch:
getFeaturedMedia = json => {
var result = null;
fetch(json)
.then(response => response.json())
.then(responseJson => {
result = responseJson.source_url; // I want to get this value out of here, with a return
console.log("Inside: " + result);
})
.catch(error => {
console.log(error);
});
return result;
};