Answer the question
In order to leave comments, you need to log in
How to load images in a loop?
Hello, new to react, I have an array like this
[{
img_from:0,
name:'hello',
img:'some.jpg'
},
{
img_from:0,
name:'hello',
img:'some.jpg'
}
]
array.map(function(elem, index) {
return<div className="catalog-item">
<img src="тут должно быть локальное изображение">
</div>
})
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question