Answers for "_40 0 _55 null _65 0 _72 null react native fetch"

0

_40 0 _55 null _65 0 _72 null react native fetch

//This error occures when you try to print a non resolved promise
// Example the following code while lead to the error
const res = await fetch('some_url/');
console.log(res.json());

// Correct way
const res = await fetch('some_url/');
const json = await res.json();
console.log(json);
Posted by: Guest on June-11-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language