Json – How to fetch array objects from api using axios?
Im fetching data from api using axios. I have array of objects. I would like to fetch objects inside array. Here is api : https://51fgc922b7.execute-api.ap-south-1.amazonaws.com/dev/productpreview?product_id=122003 enter image description here Here is what i tried ! useEffect(() => { if (props.product_id)…