Home > Back-end >  how can bind array values in map function react
how can bind array values in map function react

Time:04-10

hope you are doing great, I am trying to bind array values in my map function but I am unsuccessful in achieving my result

Here is the console result of line number 32 where I am getting data enter image description here

here is my code enter image description here

my screen is looking like this now enter image description here

enter image description here

if i {console.log(item)} inside the map function

CodePudding user response:

Here you are having your object inside an array, so whenever you are mapping the fdata array then inside that there is another array so instead of using, item.name, item.sellingPrice use item[0].name, itme[0].sellingPrice

  • Related