Categories
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
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 a Question
731 491 924 answers to any question