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
}
]
}