is it valid? #1394
code-masala
started this conversation in
General
is it valid?
#1394
Replies: 1 comment
-
not quite... you can only use you should do: fetch(url)
.then(res => res.json())
.then(json => {
// Do something with the json data
return json
}) or if you prefer async/await and it's supported in top-level await or inside a async function: const res = await fetch(url)
const json = await res.json()
// do something with json |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
@jimmywarting bro is this valid?
Beta Was this translation helpful? Give feedback.
All reactions