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);
}
}
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)