I am new to react JS platform. but decided to try to hands-on that I have stuck at one simple thing.
<div>
<a href="#"><img src="test.png"></a>
</div>
<div>
<a href="#"><img src="test.png"></a>
</div>
<div>
<a href="#"><img src="test.png"></a>
</div>
<div>
<a href="#"><img src="test.png"></a>
</div>
<div>
<a href="#"><img src="test.png"></a>
</div>
<div>
<a href="#"><img src="test.png"></a>
</div>
<div>
<a href="#"><img src="test.png"></a>
</div>
<div>
<a href="#"><img src="test.png"></a>
</div>
<div>
<a href="#"><img src="test.png"></a>
</div>
<div>
<a href="#"><img src="test.png"></a>
</div>
<div>
<a href="#"><img src="test.png"></a>
</div>
I have set this HTML get from my database, now I need to make a loop so I can convert this string to an array structure for every div. anyone has an idea how can I able to do that. below is my code not working properly.
$(sliderContent).each(function() {
tempArray.push(
<div className={classes.slides}>
{this}
</div>
);
});