Changeset c44c5ed for my-react-app/src/components/RestaurantContext.js
- Timestamp:
- 05/02/25 15:06:42 (2 weeks ago)
- Branches:
- main
- Children:
- 142c0f8
- Parents:
- 2518b3a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
my-react-app/src/components/RestaurantContext.js
r2518b3a rc44c5ed 12 12 try { 13 13 const response = await axios.get('http://localhost:8081/api/restaurants'); 14 console.log("Fetched once", response.data);15 14 setRestaurants(response.data); 16 15 } catch (error) {
Note:
See TracChangeset
for help on using the changeset viewer.