You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the Button component, the helper functions createIcon, createLabel, and createBadge are executed on every render, regardless of whether their dependent props have changed.
While each computation is relatively small, this can lead to unnecessary recalculations in scenarios where the Button component re-renders frequently (e.g., in lists, forms, or state updates).
Suggested Improvement
Memoize the results of these helper functions using React.useMemo, based on their relevant dependencies.
Activity
sudheerchauhan452-lab commentedon Apr 14, 2026
Hi, I’d like to work on this issue. Assign it to me please.