A
A
adizh2021-06-24 15:49:50
AJAX
adizh, 2021-06-24 15:49:50

How can I make an asynchronous slider?

You need to make an asynchronous slider (that is, take pictures and data from a json file). Through the map, all the data comes out in one line, but how can you do it one by one?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
pLavrenov, 2021-06-24
@adizh

Array.prototype.map()
In the context of React, map() should return not an array element (or a string), but a block object

{data.map((user) => (
   <div>{user}</div>
))}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question