DEV Community

Discussion on: When That's Not So Fetch: Error Handling With fetch()

Collapse
 
benparkerok profile image
Ben Parker

First of all, thanks so much for this resource!! It's absolutely awesome and has helped me so much.

Your example has .catch(console.log);

What if I wanted to catch the error and write it to the DOM?