DEV Community

Discussion on: Fetch() is All you Need

Collapse
 
thomasferro profile image
Thomas Ferro

Nice article but beware of the response.json() call before checking reponse.ok, it may get you or anyone copying your example in trouble!

I found this video by Joel Thoms to explain clearly the issue: youtube.com/watch?v=aIboXjxo-w8

Collapse
 
ruheni profile image
Ruheni Alex

Learnt something new today! Thank you for sharing