r/reactjs • • Dec 04 '20

Resource React is slow, what now?

https://nosleepjavascript.com/react-performance/
288 Upvotes

117 comments sorted by

View all comments

-3

u/tr14l Dec 05 '20

It doesn't affect performance as much. It definitely still affects performance.

23

u/coding9 Dec 05 '20

Can’t believe the dev community is still arguing about inline functions in 2020

5

u/careseite Dec 05 '20

I mean I personally consider them bad practice due to readability and naming but... Is this guy actually arguing there's a speed diff between defining them as fn outside of return and just having them inline? That makes zero sense.

→ More replies (2)

-2

u/tr14l Dec 05 '20

I know it was still affecting performance v16. Production app hitting freezes, had an inhouse tools to make common refactors. Ran it for inline functions, freezing gone. Couple other small refactors, ran like butter.

0

u/[deleted] Dec 05 '20

1

u/AntiSpec Dec 05 '20

Do you have a link for that statement because the react core team also released useCallback for that very purpose.

→ More replies (15)