Answer the question
In order to leave comments, you need to log in
How can element rendering be optimized?
I iterate over 500 array elements and create a span for each element.
There is a big freeze happening on mobile devices.
How can you optimize the loading of elements in this case?
[...Array(542)].map((value, index) =>
<span
key={icon}
className={`item-icon item-icon-${icon}`}
/>
}
)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question