Lovely job here. The app works well š
I would just suggest in your JS to add a check to ensure the API has responded correctly and render an error message if not. This isn't too tricky, and I would just change the first then
to be something like:
.then(response => response.ok ? response.json() : Promise.reject("API failed")```
If you then add a catch
at the end of your fetch function you can render some fallback text in case things don't work for any reason.
It's not a big deal, but thinking about how things can go wrong is a good habit to get into.
Cheers š
Dave
Marked as helpful