Reactjs – myData.map is not a function , TypeError: myData.map is not a function
import { useState, useEffect } from "react"; import axios from "axios"; const Aside = () => { const [myData, setMyData] = useState([]); // using Promises useEffect(() => { axios .get("https://dummyjson.com/products") .then((response) => setMyData(response.data)) }, []); //plz subscribe to thapa technical…