C
C
c00ldev2020-01-05 11:40:43
JavaScript
c00ldev, 2020-01-05 11:40:43

How to properly retrieve data from the server?

How to display images from the images array?
5e11a0924ff4a993654652.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2020-01-05
@c00ldev

{this.state.ad.map(n => (
  <div key={n.id}>
    <h2>{n.title}</h2>
    <div>{n.images.map(src => <img src={src} />)}</div>
  </div>
))}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question