Improve Your HTML Tables with react-virtuoso

Have you ever built a table listing a lot of information? Then here is how to make it perfect.

Buddhi Vikasitha
5 min readJun 8, 2024

You may have built many tabular structures in your applications because tables are one of the most efficient ways to display complex sets of data. Even if you haven’t noticed, a table with an insane amount of data can cause a slowness in your application. Remember that one time your browser got stuck when loading a webpage with a long data table in it.

Something like this can mainly be due to two things.

  • Backend taking a long time to return your data.
  • Frontend taking a long time to render your data.

Lets talk about the frontend here. There are common use cases where we end up with long data tables in our UI. For example, most users like the idea of having an infinite scrolling behaviour in their applications. This saves the time taken to manually click on the pagination indicators and lets the application automatically load the next set of data for you.

But this advantage comes with a negative. Which is a reduction in UI performance. The more data you load into the HTML, the more the application can have negative effects, trying to hold them all in the UI.

--

--

Buddhi Vikasitha

Software Engineer, Graphic Designer, Gamer, Mahindian, Graduate | buddhiv.io