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

Are React components with many lines of code less performant?

$
0
0

I just watch this video Are Your React Components Too BIG?
He shows how a big component rerenders the entire page on every click.
CleanShot 2024-04-30 at 16.51.08

I do use many big Rescript React components of thousands of lines of code. It saves me a lot of work in prop drilling and other tedious things.

I do notice that the re-renders are seemingly small on my machine, less than 8ms (throttling down 6X my M3 macbook).

So which is the advice for this? should i break them apart by default or just break them when there are performance issues?


Viewing all articles
Browse latest Browse all 1759

Trending Articles