DEV Community

React performance affected by nested component constructor call?

bronxsystem on August 02, 2020

Hell all, Does performing the conditional render logic in the render method affect performance? Because if i do the condition render logic outsid...
Collapse
 
niklas_24 profile image
Niklas H

It's just an extra function call, so the performance impact should be minimal.

But, just to be sure, you could set up a list of 100K elements and see if I am right or have no clue what I am talking about.

Good Luck

Collapse
 
bronxsystem profile image
bronxsystem

anyone :(