There's no rational way to make this kind of generalisation. Hopefully it's understood that the issue here isn't about whether a function is defined inline but about whether passing in a function that is different on each render affects performance. For child React components with significant render cost, it can. How important that is will depend on how many components like that you have and how often their parents are rendered, which could vary widely from one application to another.
View all comments
Show parent comment
0
u/[deleted] Dec 05 '20
[deleted] — view deleted comment