map function not working in React
问题 I am new to React JS, I was testing out some functions in fiddler. I am not sure why I get an error pointing to the map function. I am not able to render the array i defined. Relevant snippet: {this.props.data.productSpecs.map(function(productSpec){ <b>Category Name:</b> {productSpec}; })} Full code: var productCategory = { productName: 'SamamgaTV1', productCategory: 'Television', productSpecs: ['32inch','black','hd'] }; var ProductComponent = React.createClass({ render: function() { return(