React.js wrong report, map is not function, can you give me some ideas?

inside the list box (parent), loop through multiple list items (children), and the list items report an error map is not function? Please help us to see where there is a problem. Thank you
and paste the code below:

{item.fav}

</div> </a> ) }) return ( <div>{listItems}</div> ) } } export default TactiveItem;
Sep.27,2021

let listDatas = this.props.data;
listDatas is not an array, how can you call the map method? There must have been a mistake


this code has only two map methods! If you really can't see what the problem is, you can immediately know what the problem is by typing debugger or console.log respectively.


has been resolved, thank you?

Menu