Great post Lori! I've found that for doing routine fetch calls like this, its even easier to do
const data = await (await fetch(url)).json();
This way you don't add unnecessary variables or add to the call stack, but still keep your fetch call down to one line.
Nice! Thanks for the tip, Taylor!
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Great post Lori!
I've found that for doing routine fetch calls like this, its even easier to do
This way you don't add unnecessary variables or add to the call stack, but still keep your fetch call down to one line.
Nice! Thanks for the tip, Taylor!