Render Items while .map() function is running

Viewed 184

I have a large list of items in my React App. Generally I have 2000 items but they don't render until the map finishes. This is the code

So in this code, when the map starts running, the loader stops animating because props.items.length is greater than one, but the map take a while to finish so the elements don't show.

Someone knows how to fix this? Thank you

0 Answers
Related