Okhun-98 / Effortless-Shopping-with-CRM-Integration

0 stars 0 forks source link

Create a new "Products" page and implement API data fetching. #11

Open azavjo40 opened 5 months ago

azavjo40 commented 5 months ago

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:

fetch('https://fakestoreapi.com/products')
    .then(res => res.json())
    .then(json => console.log(json));

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.