React Core & Hooks (407 Qs)•Part 9: React Hooks Deep Dive (262 - 316)
Is it good to use arrow functions in render methods?
mid LevelHooks
Yes, you can use arrow functions in render methods. It is often the easiest way to pass parameters to callback functions. However, each render creates a new function instance, so if passed to memoized child components, optimize using useCallback or instance methods to prevent unnecessary child re-renders.