Handle the fetched data appropriately (e.g., display it on the page, handle errors, etc.).
Acceptance Criteria:
A new "Products" page is created and accessible.
The page successfully fetches data from the provided API and logs the results to the console.
Basic error handling is implemented for the API call.
Description: Create a new "Products" page:
Develop a new page named "Products". Ensure it is accessible from the main navigation menu. Fetch data from API:
Use the following API endpoint to fetch product data: https://fakestoreapi.com/products. Implement the fetch logic using the following code snippet:
Handle the fetched data appropriately (e.g., display it on the page, handle errors, etc.). Acceptance Criteria: A new "Products" page is created and accessible. The page successfully fetches data from the provided API and logs the results to the console. Basic error handling is implemented for the API call.