DEV Community

Discussion on: Need some help & advice from React.js devs!

Collapse
 
bihan001 profile image
Bihan Chakraborty • Edited

Instead of having an object as the state, use an array in the state and set the whole data array to it like setState({recievedArr: response.data data}) Then later you can use the state array and map function over it to render elements. like this.state.recievedArr.map(m=><p>{m.Company}</p>)

Collapse
 
yoqub98 profile image
yoqub98