Home > Software engineering >  MERN-How to get data which is in array
MERN-How to get data which is in array

Time:12-31

I have an react-app .. I don't know the method to get data from the array from mongo db which has a structure image

I used {this.props.obj.index} to get index value and so on.. but i dont know how to gegt from array {this.props.obj.songdata.object.songindex} . help me

CodePudding user response:

use {this.props.obj.songdata[0].songindex}

  • Related