Untitled

mail@pastecode.io avatar
unknown
plain_text
8 months ago
254 B
6
Indexable
Never
export const mealsCategories = async () => {
  const meals = await fetch('https://www.themealdb.com/api/json/v1/1/list.php?c=list');
  const mealsJson = await meals.json();
  const limitedResults = mealsJson.meals.slice(0, 5);
  return limitedResults;
};