Back

Fix Performance Issue from Creating Functions in Render Loop

Problem

New function is created on every render, causing unnecessary re-renders of child components.

Code Editor