Skip to content

Replace selector with array item

I would like to archive that I have an Array, with 3-4 Items and then I want to itterate throw all of them and change the selector in the function with the items of the array. then my function and then the foreach .btn should be like name or person, and I want maybe to add late more Items to

For Loops and React JS

So I have this function here: and its suppose to insert list items into and unorder list from an array of card objects. If I do a console.log on arr I can verify that it is an array of cards, but if I console.log card from inside the for each it does not even trigger. It’s like the for each