i have a data (array of object)
example data.
"data": [
{
"name": "name",
"mockupImages": "http://test.com/image1.png,http://test.com/image2.png"
}]
=========================================== here's my code snippets
<Row>
<Col xs={4}>
<img style={{ width: '40', height: '60'}} src={_.map(data, 'mockupImages')} />
</Col>
</Row
I already get the data mockupImages, the problem is I need to accept only one string
colIf that is the case then use the function instead_.map(array, function(){...}). Then you can return aimgwithsrc=mockupImages.const [result] = (([{mockupImages:u}]) => u.split(','))(data);