cannot display products by map in jsx components

Viewed 34
1 Answers

You need to create an array out of props.products, like so:

var products = Array.from(props.products);

then will be able to use products.map() function

working example on: sandbox

Related