San
Posted on September 12, 2023
export async function fetchProducts() {
try {
const url = "https://dummyjson.com/products/";
const res = await fetch(url);
const result = await res.json();
return result;
} catch (err) {
console.log("error fetching products==>", err);
}
}
๐ ๐ช ๐
๐ฉ
San
Posted on September 12, 2023
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.