If your use case requires rendering and updating thousands of components, maybe React wasn't a good fit?
You could try switching to Preact which has better performance and should be painless.
https://krausest.github.io/js-framework-benchmark/current.ht...
Re:What's New in React 18?
by Waterluvian on Wednesday September 29, 2021 @04:09PM
(#28699231)
Not components. Elements that compile to a canvas. Think tens of thousands of points, lines, polygons, all drawn as vector or raster images. Ie. compiling a deeply rich interactive map of data.
I appreciate the advice but I didn't provide sufficient information for informed responses. It was just a general comment about why I'm excited for React 18 to help better manage concurrency in a number of ways.
Suspense will also be nice because I can eliminate a lot of my own "loading screen" logic.
Picture a canvas that I'm calculating then drawing tens of thousands of elements to before displaying it. Very binnable. Very hard to get right to a point that you can't "feel" the lag when working with the rest of the app.
I also explored web workers but it's currently more hassle than I want to be bothered with.