4 ms·
Micro-optimisations aren't useful. If you get to the point where the performance cost of inline functions is a bottleneck, you probably shouldn't be using React
by beaconstudios 5y ago
Micro-optimisations aren't useful. If you get to the point where the performance cost of inline functions is a bottleneck, you probably shouldn't be using React at all.
- bacro 5y agoMaybe, but I just prefer to have a named function defined with a useCallback and just call it.
- beaconstudios 5y agoThat's fine, but that's more of a stylistic preference than a performance concern.