J
J
jslint2018-12-06 21:10:42
Frontend
jslint, 2018-12-06 21:10:42

How to render many records?

There are 30,000 rows in the array, I need to show them in the DOM so that nothing lags, what is the best way to do this?
Tell me pliz

[1,2,3....30000].map((item)=> <div>{item.name}</div>)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
0
0xD34F, 2018-12-06
@jslint

there are 30,000 rows in the array, need to show them in the DOM

Not necessary. To whom to show something? - the user will not perceive so much information at one time. Have you heard the word "pagination"? If not - google it.

A
abberati, 2018-12-07
@abberati

With such a statement of the problem, no way.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question