Quantcast
Channel: ReScript Forum - Latest posts
Viewing all articles
Browse latest Browse all 1991

Are React components with many lines of code less performant?

$
0
0

The only approach that has worked for me to avoid such large re-renders is to keep the state “outside” the component tree. Then, access that state only in the components that need it. Now only the components that actually use the state re-render.

I have used RxJS for this. Jotai should also work well.


Viewing all articles
Browse latest Browse all 1991

Latest Images

Trending Articles



Latest Images