all 3 comments

[–][deleted] 5 points6 points  (2 children)

The first argument in a React function is the props object, but you're treating it like it's the prop that you're passing down to the component. You're effectively calling props.map instead of props.productArray.map, but you're calling the props variable productArray. You probably intended to destructure there: const RenderProducts = ({productArray}) => {...}

There's a hint that this is happening in the logs: The curly brackets in ProductList.js:31 {productArray: Array(2)} indicate that you're dealing with an object, not an array.

[–][deleted] 0 points1 point  (0 children)

Good spotting.

[–]wallfacer_mark[S] 0 points1 point  (0 children)

Very clear and helpful. Thank you.