react map returned error of Objects are not valid as a React child
问题 I failed to render jxs using map of lodash. I have this in my render method return ( <div> {map(groupedByMonths, (obj, index) => <div className="panel"> <div className="panel-heading"> {obj} </div> <div>{obj.price}</div> </div>)} </div> ) But I got error of Objects are not valid as a React child The groupedByMonths structure look like this { "April": [ { "price": 0, }, { "price": 12 }, { "price": 200 } ] } 回答1: Don't know how to do this with lodash map , i can suggest this: {Object.keys