You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Display an error message in <Bookings /> if there is an HTTP error when fetching data from the server. To test this, try loading data from https://cyf-react.glitch.me/error, which will return a 500 HTTP error.
Hint: Try looking at your Pokemon app for an example.
If you complete #22 and merge it, you will likely reduce the work needed here
Test:
When loading bookings data from the /error endpoint, an error message should be displayed on the screen.
The text was updated successfully, but these errors were encountered:
From React-Module-Project created by SallyMcGrath: CodeYourFuture#23
Show an error message
Instructions:
Display an error message in
<Bookings />
if there is an HTTP error when fetching data from the server. To test this, try loading data fromhttps://cyf-react.glitch.me/error
, which will return a 500 HTTP error.Hint: Try looking at your Pokemon app for an example.
If you complete #22 and merge it, you will likely reduce the work needed here
Test:
/error
endpoint, an error message should be displayed on the screen.The text was updated successfully, but these errors were encountered: