📜  _40 0 _55 null _65 0 _72 null react native fetch - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:26.194000             🧑  作者: Mango

代码示例1
//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);