I am trying to create a list of images having text just below it. All images in this list should be horizontal. I am using this fiddle
It is working fine without react.
But I want to do it in react as follows.
a.subList.map((b) => (
<figure id="figure">
<ul>
<li>
<img src={b.imageUrl} />
<figcaption>{b.name}</figcaption>
</li>
</ul>
</figure>
))
where a.subList is in this form
[{"imageUrl":"/acb","name":"cvb"},{"imageUrl":"/asdf","name":"cvbnm"}]
But using react function it is not showing in horizontal direction.