I have api post request in react like
const sendData=new FormData();
sendData.append('func','list');
sendData.append('qry',"select * from student ");
axios({
method: 'post',
url: 'http://localhost/freact/index.php',
data:sendData
})
.then((resp)=>console.log(resp.data));
and i am receiving this data
0: {id: "1", name: "vivek", fname: "manohar", mobile: "8824859583", photo: "http://localhost/freact/uploaded/student/194_axixa_cleaner-better-code-670x335.jpg"}
1: {id: "2", name: "anki", fname: "Sushil", mobile: "267877", photo: "http://localhost/freact/uploaded/student/382_axixa_Ankita.pdf"}
how can i loop through it inside the table