skip to Main Content

React Native map "Undefined" is not a function

I'm trying to get data from API but. I'm getting this error Error Image. Here is my code. const [datas, setDatas] = useState(" "); const res = async () => { const response = await axios.get("http://hasanadiguzel.com.tr/api/kurgetir"); setDatas(response.data.TCMB_AnlikKurBilgileri); }; datas.map((item) =>…

VIEW QUESTION
Back To Top
Search