Home  >  Q&A  >  body text

Optimizing React Application Performance: An Efficient Way to Render Large Numbers of Projects

I'm developing a React application and need to display a large list of items (thousands of rows). Currently, performance is very slow when the user scrolls through the list or filters items. Is there any way to optimize the performance of my React application to improve user experience?

Some additional information:

- I'm using React function components and hooks to render a list of items. - Each item in the list contains multiple data fields, including text and pictures.

- I'm currently using the built-in map function to render a list of items.

- I'm using a library to handle filtering and sorting of a list of items.

- I've tried using shouldComponentUpdate and React.memo to improve performance, but it's still not fast enough.

I'm open to any suggestions, including using 3rd party libraries or rewriting parts of the application if necessary. Thanks in advance for your help!

P粉733166744P粉733166744276 days ago362

reply all(1)I'll reply

  • P粉287254588

    P粉2872545882024-01-17 10:36:09

    You can use the library react-window. It's useful for virtualizing scrolling in lists with large numbers of elements, and should help you with performance tuning.

    reply
    0
  • Cancelreply