Is there a way to solve this "undefined is not an object (evaluating 'data.products.map')"? – Reactjs
My React App pulls data from a Djano REST API through the api.js file below. api.js const URLS = { PRODUCTS: "http://127.0.0.1:8000/api/products/", PRODUCT: (id) => `http://127.0.0.1:8000/api/products/${id}`, }; const wrappedFetch = (...args) => { return fetch(...args).then((res) => { return res.json(); });…